From a98b038300fd4c4d64f4f9cb3268ba365382772a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 18 Feb 2016 15:36:38 +0100 Subject: [PATCH] Query the cache when checking if a node exists --- lib/private/files/node/root.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/private/files/node/root.php b/lib/private/files/node/root.php index 0be7ee2c49..b5306eed8b 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); }