Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix encryption wrapper filesize for non existing files
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 committed Apr 4, 2023
commit 15a6920b07d0e4d7af0c432c661c293df377b5c2
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