add some comments
This commit is contained in:
parent
21cfd1014a
commit
054083b9cd
1 changed files with 2 additions and 0 deletions
2
lib/private/files/cache/scanner.php
vendored
2
lib/private/files/cache/scanner.php
vendored
|
@ -105,6 +105,8 @@ class Scanner extends BasicEmitter {
|
|||
$parent = '';
|
||||
}
|
||||
$parentId = $this->cache->getId($parent);
|
||||
|
||||
// scan the parent if it's not in the cache (id -1) and the current file is not the root folder
|
||||
if ($file and $parentId === -1) {
|
||||
$parentData = $this->scanFile($parent);
|
||||
$parentId = $parentData['fileid'];
|
||||
|
|
Loading…
Reference in a new issue