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 authored and PVince81 committed Oct 21, 2022
1 parent 7848d1c commit fb5ff8f
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 @@ -135,8 +135,10 @@ public function __construct(
public function filesize($path) {
$fullPath = $this->getFullPath($path);

/** @var CacheEntry $info */
$info = $this->getCache()->get($path);
if ($info === false) {
return 0;
}
if (isset($this->unencryptedSize[$fullPath])) {
$size = $this->unencryptedSize[$fullPath];
// update file cache
Expand Down

0 comments on commit fb5ff8f

Please sign in to comment.