Query the cache when checking if a node exists
This commit is contained in:
parent
86581f6626
commit
a98b038300
|
@ -176,8 +176,9 @@ class Root extends Folder implements IRootFolder {
|
||||||
$path = $this->normalizePath($path);
|
$path = $this->normalizePath($path);
|
||||||
if ($this->isValidPath($path)) {
|
if ($this->isValidPath($path)) {
|
||||||
$fullPath = $this->getFullPath($path);
|
$fullPath = $this->getFullPath($path);
|
||||||
if ($this->view->file_exists($fullPath)) {
|
$fileInfo = $this->view->getFileInfo($fullPath);
|
||||||
return $this->createNode($fullPath);
|
if ($fileInfo) {
|
||||||
|
return $this->createNode($fullPath, $fileInfo);
|
||||||
} else {
|
} else {
|
||||||
throw new NotFoundException($path);
|
throw new NotFoundException($path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue