diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2021-11-04 11:21:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 11:21:03 +0300 |
commit | 7e8c3d7779abd5d782ec1a4c7d8cfa9bd9c50956 (patch) | |
tree | c4cb756377cddfb8b8d71ee88362a1f28f6290ca /lib | |
parent | 7a8b12ef10bd0c84642c2c607d49f876d7d44055 (diff) | |
parent | d8ff7eadc698699f50ec8854a27df1c2fd596cb1 (diff) |
Merge pull request #29290 from nextcloud/backport/28768/stable20
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/Local.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index 1bfb9f611bb..13344243fd5 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -217,7 +217,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); |