summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-07-22 16:41:15 +0200
committerJulius Härtl <jus@bitgrid.net>2019-07-24 14:01:24 +0200
commit3674f6fa2d8e4d6dfbabaca6edb8f451f06f5736 (patch)
tree352e5d0ad289f4e1b7d052a3007452c3f20e43d1 /lib/private
parent7e8dfd404e5f2b121f145c31dc277d204ddcb2ea (diff)
downloadnextcloud-server-3674f6fa2d8e4d6dfbabaca6edb8f451f06f5736.tar.gz
nextcloud-server-3674f6fa2d8e4d6dfbabaca6edb8f451f06f5736.zip
Check the if we can actually access the storage cache for recent files
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private')
-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 !== '/';
}));