Skip to content

Commit 0125534

Browse files
committed
fix: Do not return partial file info if we have a cache entry
Signed-off-by: Julius Härtl <[email protected]>
1 parent 9951db4 commit 0125534

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/private/Files/View.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,9 +1338,6 @@ public function getFileInfo($path, $includeMountPoints = true) {
13381338
if (!Filesystem::isValidPath($path)) {
13391339
return false;
13401340
}
1341-
if (Cache\Scanner::isPartialFile($path)) {
1342-
return $this->getPartFileInfo($path);
1343-
}
13441341
$relativePath = $path;
13451342
$path = Filesystem::normalizePath($this->fakeRoot . '/' . $path);
13461343

@@ -1351,6 +1348,10 @@ public function getFileInfo($path, $includeMountPoints = true) {
13511348
$data = $this->getCacheEntry($storage, $internalPath, $relativePath);
13521349

13531350
if (!$data instanceof ICacheEntry) {
1351+
if (Cache\Scanner::isPartialFile($relativePath)) {
1352+
return $this->getPartFileInfo($relativePath);
1353+
}
1354+
13541355
return false;
13551356
}
13561357

0 commit comments

Comments
 (0)