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

Perform the filesize on the file that exists
This commit is contained in:
Vincent Petry 2015-06-30 14:51:29 +02:00
commit 0118bf04dc

View file

@ -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 {