mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Perform the filesize only when the file exists
Regression from95602d4069and9b336765b6
This commit is contained in:
parent
a1bfc26b88
commit
9c533342fc
1 changed files with 6 additions and 2 deletions
|
|
@ -364,8 +364,12 @@ class Encryption extends Wrapper {
|
|||
$encryptionModule = $this->encryptionManager->getEncryptionModule($encryptionModuleId);
|
||||
}
|
||||
|
||||
$size = $this->storage->filesize($path);
|
||||
$unencryptedSize = $this->filesize($path);
|
||||
if ($this->file_exists($path)) {
|
||||
$size = $this->storage->filesize($path);
|
||||
$unencryptedSize = $this->filesize($path);
|
||||
} else {
|
||||
$size = $unencryptedSize = 0;
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue