fix encryption wrapper filesize for non existing files

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2022-10-14 14:50:35 +02:00
parent 59d0e7711d
commit 15a6920b07
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -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