mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fix: Do not return partial file info if we have a cache entry
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
6c1e896a03
commit
2b0bc8b310
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue