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
Branches
No related tags found
No related merge requests found
......@@ -364,8 +364,12 @@ class Encryption extends Wrapper {
$encryptionModule = $this->encryptionManager->getEncryptionModule($encryptionModuleId);
}
if ($this->file_exists($path)) {
$size = $this->storage->filesize($path);
$unencryptedSize = $this->filesize($path);
} else {
$size = $unencryptedSize = 0;
}
}
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment