diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2021-10-21 10:32:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 10:32:32 +0300 |
commit | 6b0bdf192c3b512a35695ef3a257f94241b3377d (patch) | |
tree | 007a64ec7bc346f559ebb78087100eba728eeeac /lib/private | |
parent | 8a5317cbfe1021a501267182140797c7396c208c (diff) | |
parent | f57bbaf14649f2bf9a2adb84adb312b2e2d029b6 (diff) |
Merge pull request #29289 from nextcloud/backport/28768/stable21
Diffstat (limited to 'lib/private')
-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 4df16b206a5..0032ca46446 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -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); |