add some comments

This commit is contained in:
Robin Appelman 2014-06-10 15:37:43 +02:00
parent 21cfd1014a
commit 054083b9cd
1 changed files with 2 additions and 0 deletions

View 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'];