diff options
author | Robin Appelman <robin@icewind.nl> | 2017-01-25 17:03:45 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-01-25 17:03:45 +0100 |
commit | 2520a4831b2f2fefc52395355238091c9d6823b8 (patch) | |
tree | 5e1c7ebdf4f8b0fdd5c761b32a760ef5c5979ac8 /lib/private/Files/Cache/Scanner.php | |
parent | ffe2543a573d7731bc2e89ad158a61d50906dfb0 (diff) | |
download | nextcloud-server-2520a4831b2f2fefc52395355238091c9d6823b8.tar.gz nextcloud-server-2520a4831b2f2fefc52395355238091c9d6823b8.zip |
Make sure we use the correct storage id when scanning a jailed storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Cache/Scanner.php')
-rw-r--r-- | lib/private/Files/Cache/Scanner.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 |