Merge pull request #29288 from nextcloud/backport/28768/stable22

This commit is contained in:
John Molakvoæ 2021-10-21 09:31:46 +02:00 committed by GitHub
commit cad44d69dd
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);