Skip to content

Commit cad44d6

Browse files
authored
Merge pull request #29288 from nextcloud/backport/28768/stable22
2 parents 0a1ee2d + 50791c6 commit cad44d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Files/Storage/Local.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public function filetype($path) {
216216
}
217217

218218
public function filesize($path) {
219-
if ($this->is_dir($path)) {
219+
if (!$this->is_file($path)) {
220220
return 0;
221221
}
222222
$fullPath = $this->getSourcePath($path);

0 commit comments

Comments
 (0)