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
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2021-10-21 10:32:32 +0300
committerGitHub <noreply@github.com>2021-10-21 10:32:32 +0300
commit6b0bdf192c3b512a35695ef3a257f94241b3377d (patch)
tree007a64ec7bc346f559ebb78087100eba728eeeac /lib
parent8a5317cbfe1021a501267182140797c7396c208c (diff)
parentf57bbaf14649f2bf9a2adb84adb312b2e2d029b6 (diff)
Merge pull request #29289 from nextcloud/backport/28768/stable21
Diffstat (limited to 'lib')
-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 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);