diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 890dcfe20e1c6..4aaea23e7f11e 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -1369,9 +1369,6 @@ public function getFileInfo($path, $includeMountPoints = true) { if (!Filesystem::isValidPath($path)) { return false; } - if (Cache\Scanner::isPartialFile($path)) { - return $this->getPartFileInfo($path); - } $relativePath = $path; $path = Filesystem::normalizePath($this->fakeRoot . '/' . $path); @@ -1382,6 +1379,10 @@ public function getFileInfo($path, $includeMountPoints = true) { $data = $this->getCacheEntry($storage, $internalPath, $relativePath); if (!$data instanceof ICacheEntry) { + if (Cache\Scanner::isPartialFile($relativePath)) { + return $this->getPartFileInfo($relativePath); + } + return false; }