diff options
author | Julius Härtl <jus@bitgrid.net> | 2024-07-22 11:33:50 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-07-25 17:40:12 +0000 |
commit | ce6768027e67855c166d71a403f14e12d176dec9 (patch) | |
tree | c429d0949022672310a93459d98026e10bc6ee87 /lib/private/Files | |
parent | 7f9b44d6a54b85de076ecdac5c4168e4d7f5b8b7 (diff) | |
download | nextcloud-server-ce6768027e67855c166d71a403f14e12d176dec9.tar.gz nextcloud-server-ce6768027e67855c166d71a403f14e12d176dec9.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')
-rw-r--r-- | lib/private/Files/View.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 890dcfe20e1..4aaea23e7f1 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -1369,9 +1369,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); @@ -1382,6 +1379,10 @@ class View { $data = $this->getCacheEntry($storage, $internalPath, $relativePath); if (!$data instanceof ICacheEntry) { + if (Cache\Scanner::isPartialFile($relativePath)) { + return $this->getPartFileInfo($relativePath); + } + return false; } |