summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/files/node/folder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/node/folder.php b/lib/private/files/node/folder.php
index 23004fc3527..00bf738227d 100644
--- a/lib/private/files/node/folder.php
+++ b/lib/private/files/node/folder.php
@@ -222,7 +222,7 @@ class Folder extends Node implements \OCP\Files\Folder {
$results = call_user_func_array(array($cache, $method), $args);
foreach ($results as $result) {
- if ($internalRootLength === 0 or substr($result['path'], 0, $internalRootLength) === $internalPath) {
+ if ($internalRootLength === 1 or substr($result['path'], 0, $internalRootLength) === $internalPath) {
$result['internalPath'] = $result['path'];
$result['path'] = substr($result['path'], $internalRootLength);
$result['storage'] = $storage;