]> source.dussan.org Git - nextcloud-server.git/commitdiff
add some comments
authorRobin Appelman <icewind@owncloud.com>
Tue, 10 Jun 2014 13:37:43 +0000 (15:37 +0200)
committerRobin Appelman <icewind@owncloud.com>
Tue, 10 Jun 2014 13:37:43 +0000 (15:37 +0200)
lib/private/files/cache/scanner.php

index 1f67ce0062c342fcd1173cc90e106a4dae3262c1..3f681e573100538e32dad68ce381591635ac7567 100644 (file)
@@ -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'];