mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04: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
7f9b44d6a5
commit
ce6768027e
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue