Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2021-10-18 10:54:22 +0300
committerGitHub <noreply@github.com>2021-10-18 10:54:22 +0300
commita1c8b6e9eb6543cde93ec2fb8be2fddfff0f54d2 (patch)
tree59c8d898ff86cbbf9dccbfdb013643d7937bf699 /lib/private/Files/Storage
parent822623109f4f4b3252c04a5c0ccf6757a882e771 (diff)
parent98eac0fc05dac7c694038b169cf98fd81fbccc92 (diff)
Merge pull request #28768 from nextcloud/check-file-exists
Diffstat (limited to 'lib/private/Files/Storage')
-rw-r--r--lib/private/Files/Storage/Local.php2
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);