From 2520a4831b2f2fefc52395355238091c9d6823b8 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 25 Jan 2017 17:03:45 +0100 Subject: Make sure we use the correct storage id when scanning a jailed storage Signed-off-by: Robin Appelman --- lib/private/Files/Cache/Scanner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Files/Cache/Scanner.php') diff --git a/lib/private/Files/Cache/Scanner.php b/lib/private/Files/Cache/Scanner.php index 8625e4904ca..0aaedd6582f 100644 --- a/lib/private/Files/Cache/Scanner.php +++ b/lib/private/Files/Cache/Scanner.php @@ -168,7 +168,7 @@ class Scanner extends BasicEmitter implements IScanner { $parent = ''; } if ($parentId === -1) { - $parentId = $this->cache->getId($parent); + $parentId = $this->cache->getParentId($file); } // scan the parent if it's not in the cache (id -1) and the current file is not the root folder -- cgit v1.2.3