diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2021-10-18 09:54:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 09:54:22 +0200 |
commit | a1c8b6e9eb6543cde93ec2fb8be2fddfff0f54d2 (patch) | |
tree | 59c8d898ff86cbbf9dccbfdb013643d7937bf699 /lib | |
parent | 822623109f4f4b3252c04a5c0ccf6757a882e771 (diff) | |
parent | 98eac0fc05dac7c694038b169cf98fd81fbccc92 (diff) | |
download | nextcloud-server-a1c8b6e9eb6543cde93ec2fb8be2fddfff0f54d2.tar.gz nextcloud-server-a1c8b6e9eb6543cde93ec2fb8be2fddfff0f54d2.zip |
Merge pull request #28768 from nextcloud/check-file-exists
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 eea04bd8676..870217db20f 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); |