summaryrefslogtreecommitdiffstats
path: root/lib/private/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-18 15:36:38 +0100
committerRobin Appelman <icewind@owncloud.com>2016-03-21 13:53:33 +0100
commita98b038300fd4c4d64f4f9cb3268ba365382772a (patch)
tree68d9f60b672deae51aaadaaa2dc4018ff42a4215 /lib/private/files
parent86581f66265be0dddb97f67ac867a5cb92d335e0 (diff)
downloadnextcloud-server-a98b038300fd4c4d64f4f9cb3268ba365382772a.tar.gz
nextcloud-server-a98b038300fd4c4d64f4f9cb3268ba365382772a.zip
Query the cache when checking if a node exists
Diffstat (limited to 'lib/private/files')
-rw-r--r--lib/private/files/node/root.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/files/node/root.php b/lib/private/files/node/root.php
index 0be7ee2c499..b5306eed8bb 100644
--- a/lib/private/files/node/root.php
+++ b/lib/private/files/node/root.php
@@ -176,8 +176,9 @@ class Root extends Folder implements IRootFolder {
$path = $this->normalizePath($path);
if ($this->isValidPath($path)) {
$fullPath = $this->getFullPath($path);
- if ($this->view->file_exists($fullPath)) {
- return $this->createNode($fullPath);
+ $fileInfo = $this->view->getFileInfo($fullPath);
+ if ($fileInfo) {
+ return $this->createNode($fullPath, $fileInfo);
} else {
throw new NotFoundException($path);
}