summaryrefslogtreecommitdiffstats
path: root/lib/private/files/cache/scanner.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-06-10 15:37:43 +0200
committerRobin Appelman <icewind@owncloud.com>2014-06-10 15:37:43 +0200
commit054083b9cd13244842f8664601d8566593f9737d (patch)
tree58ef31490c5bae27266c383ad6d7108498ce218f /lib/private/files/cache/scanner.php
parent21cfd1014a99e25f4ee255b872957fc1b98a7610 (diff)
downloadnextcloud-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.php2
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'];