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-11-04 11:21:03 +0300
committerGitHub <noreply@github.com>2021-11-04 11:21:03 +0300
commit7e8c3d7779abd5d782ec1a4c7d8cfa9bd9c50956 (patch)
treec4cb756377cddfb8b8d71ee88362a1f28f6290ca
parent7a8b12ef10bd0c84642c2c607d49f876d7d44055 (diff)
parentd8ff7eadc698699f50ec8854a27df1c2fd596cb1 (diff)
Merge pull request #29290 from nextcloud/backport/28768/stable20
-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 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);