Perform the filesize only when the file exists

Regression from 95602d4069
and 9b336765b6
remotes/origin/enc_quick_fix_8.1
Joas Schilling 10 years ago
parent a1bfc26b88
commit 9c533342fc
  1. 8
      lib/private/files/storage/wrapper/encryption.php

@ -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…
Cancel
Save