mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
Merge pull request #34607 from nextcloud/encryption-size-not-found
fix encryption wrapper filesize for non existing files
This commit is contained in:
commit
9f05eff3ef
1 changed files with 3 additions and 1 deletions
|
|
@ -137,8 +137,10 @@ class Encryption extends Wrapper {
|
|||
public function filesize($path): false|int|float {
|
||||
$fullPath = $this->getFullPath($path);
|
||||
|
||||
/** @var CacheEntry $info */
|
||||
$info = $this->getCache()->get($path);
|
||||
if ($info === false) {
|
||||
return false;
|
||||
}
|
||||
if (isset($this->unencryptedSize[$fullPath])) {
|
||||
$size = $this->unencryptedSize[$fullPath];
|
||||
// update file cache
|
||||
|
|
|
|||
Loading…
Reference in a new issue