aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/View.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2024-07-22 11:33:50 +0200
committerJulius Härtl <jus@bitgrid.net>2024-07-22 22:32:34 +0200
commit2b0bc8b310aef675af35373fbc8a7884869f7d05 (patch)
treef88abd4a9cce0803cb260bb1a81b30c81b532cd0 /lib/private/Files/View.php
parent6c1e896a03f20e568df5af1d547f46e2df9b71a9 (diff)
downloadnextcloud-server-2b0bc8b310aef675af35373fbc8a7884869f7d05.tar.gz
nextcloud-server-2b0bc8b310aef675af35373fbc8a7884869f7d05.zip
fix: Do not return partial file info if we have a cache entry
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Files/View.php')
-rw-r--r--lib/private/Files/View.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index c74206f6ee3..323266e8cfa 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -1338,9 +1338,6 @@ class View {
if (!Filesystem::isValidPath($path)) {
return false;
}
- if (Cache\Scanner::isPartialFile($path)) {
- return $this->getPartFileInfo($path);
- }
$relativePath = $path;
$path = Filesystem::normalizePath($this->fakeRoot . '/' . $path);
@@ -1351,6 +1348,10 @@ class View {
$data = $this->getCacheEntry($storage, $internalPath, $relativePath);
if (!$data instanceof ICacheEntry) {
+ if (Cache\Scanner::isPartialFile($relativePath)) {
+ return $this->getPartFileInfo($relativePath);
+ }
+
return false;
}