mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
Merge pull request #32024 from nextcloud/local-metadata-forbidden
ignore forbidden files while scanning local storage
This commit is contained in:
@@ -173,7 +173,11 @@ class Local extends \OC\Files\Storage\Common {
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function getMetaData($path) {
|
||||
$stat = $this->stat($path);
|
||||
try {
|
||||
$stat = $this->stat($path);
|
||||
} catch (ForbiddenException $e) {
|
||||
return null;
|
||||
}
|
||||
if (!$stat) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user