Browse Source

Merge pull request #32024 from nextcloud/local-metadata-forbidden

ignore forbidden files while scanning local storage
pull/32040/head
Robin Appelman 4 years ago
committed by GitHub
parent
commit
caebdc2a55
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      lib/private/Files/Storage/Local.php

6
lib/private/Files/Storage/Local.php

@ -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;
}

Loading…
Cancel
Save