fix encryption wrapper filesize for non existing files

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/34607/head
Robin Appelman 3 years ago
parent 59d0e7711d
commit 15a6920b07
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 4
      lib/private/Files/Storage/Wrapper/Encryption.php

@ -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…
Cancel
Save