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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
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; |
|
|
|
} |
|
|
|
|