Skip to content
Snippets Groups Projects
Commit 0118bf04 authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #17251 from owncloud/issue-17247-filesize-stat-failed-for-in-log

Perform the filesize on the file that exists
parents 2bcd0af1 9c533342
No related branches found
No related tags found
No related merge requests found
...@@ -364,8 +364,12 @@ class Encryption extends Wrapper { ...@@ -364,8 +364,12 @@ class Encryption extends Wrapper {
$encryptionModule = $this->encryptionManager->getEncryptionModule($encryptionModuleId); $encryptionModule = $this->encryptionManager->getEncryptionModule($encryptionModuleId);
} }
$size = $this->storage->filesize($path); if ($this->file_exists($path)) {
$unencryptedSize = $this->filesize($path); $size = $this->storage->filesize($path);
$unencryptedSize = $this->filesize($path);
} else {
$size = $unencryptedSize = 0;
}
} }
try { try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment