Merge pull request #28768 from nextcloud/check-file-exists

This commit is contained in:
John Molakvoæ 2021-10-18 09:54:22 +02:00 committed by GitHub
commit a1c8b6e9eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,7 +216,7 @@ class Local extends \OC\Files\Storage\Common {
}
public function filesize($path) {
if ($this->is_dir($path)) {
if (!$this->is_file($path)) {
return 0;
}
$fullPath = $this->getSourcePath($path);