diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-06-10 15:37:43 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-06-10 15:37:43 +0200 |
commit | 054083b9cd13244842f8664601d8566593f9737d (patch) | |
tree | 58ef31490c5bae27266c383ad6d7108498ce218f /lib/private/files/cache/scanner.php | |
parent | 21cfd1014a99e25f4ee255b872957fc1b98a7610 (diff) | |
download | nextcloud-server-054083b9cd13244842f8664601d8566593f9737d.tar.gz nextcloud-server-054083b9cd13244842f8664601d8566593f9737d.zip |
add some comments
Diffstat (limited to 'lib/private/files/cache/scanner.php')
-rw-r--r-- | lib/private/files/cache/scanner.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php index 1f67ce0062c..3f681e57310 100644 --- a/lib/private/files/cache/scanner.php +++ b/lib/private/files/cache/scanner.php @@ -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']; |