summaryrefslogtreecommitdiffstats
path: root/lib/private/files/node/folder.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/files/node/folder.php')
-rw-r--r--lib/private/files/node/folder.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/files/node/folder.php b/lib/private/files/node/folder.php
index bdfb2346716..5fd73cc5d36 100644
--- a/lib/private/files/node/folder.php
+++ b/lib/private/files/node/folder.php
@@ -259,6 +259,7 @@ class Folder extends Node implements \OCP\Files\Folder {
* @var \OC\Files\Storage\Storage $storage
*/
list($storage, $internalPath) = $this->view->resolvePath($this->path);
+ $internalPath = rtrim($internalPath, '/') . '/';
$internalRootLength = strlen($internalPath);
$cache = $storage->getCache('');