Skip to content
Snippets Groups Projects
Unverified Commit 171373a9 authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #24989 from nextcloud/scanner-ignore-non-readable

ignore files that have no read permissions during scanning
parents 4f52e836 205386b2
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment