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.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php
index b0569a24aa1..7f908a757a0 100644
--- a/lib/private/Files/Node/Folder.php
+++ b/lib/private/Files/Node/Folder.php
@@ -442,6 +442,10 @@ class Folder extends Node implements \OCP\Files\Folder {
}, $result));
return array_values(array_filter($files, function (Node $node) {
+ $cacheEntry = $node->getMountPoint()->getStorage()->getCache()->get($node->getId());
+ if (!$cacheEntry) {
+ return false;
+ }
$relative = $this->getRelativePath($node->getPath());
return $relative !== null && $relative !== '/';
}));