Skip to content

Commit

Permalink
fix encryption wrapper filesize for non existing files
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Apr 4, 2023
1 parent 59d0e77 commit 15a6920
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/private/Files/Storage/Wrapper/Encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ public function __construct(
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
Expand Down

0 comments on commit 15a6920

Please sign in to comment.