From 054083b9cd13244842f8664601d8566593f9737d Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 10 Jun 2014 15:37:43 +0200 Subject: [PATCH] add some comments --- lib/private/files/cache/scanner.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php index 1f67ce0062..3f681e5731 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'];