diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-02-18 15:36:38 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-03-21 13:53:33 +0100 |
commit | a98b038300fd4c4d64f4f9cb3268ba365382772a (patch) | |
tree | 68d9f60b672deae51aaadaaa2dc4018ff42a4215 /lib/private/files | |
parent | 86581f66265be0dddb97f67ac867a5cb92d335e0 (diff) | |
download | nextcloud-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.php | 5 |
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); } |