mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
Merge pull request #24989 from nextcloud/scanner-ignore-non-readable
ignore files that have no read permissions during scanning
This commit is contained in:
commit
171373a944
1 changed files with 4 additions and 0 deletions
|
|
@ -415,6 +415,10 @@ class Scanner extends BasicEmitter implements IScanner {
|
|||
$childQueue = [];
|
||||
$newChildNames = [];
|
||||
foreach ($newChildren as $fileMeta) {
|
||||
$permissions = isset($fileMeta['scan_permissions']) ? $fileMeta['scan_permissions'] : $fileMeta['permissions'];
|
||||
if ($permissions === 0) {
|
||||
continue;
|
||||
}
|
||||
$file = $fileMeta['name'];
|
||||
$newChildNames[] = $file;
|
||||
$child = $path ? $path . '/' . $file : $file;
|
||||
|
|
|
|||
Loading…
Reference in a new issue