Skip to content

Commit a1c8b6e

Browse files
authored
Merge pull request #28768 from nextcloud/check-file-exists
2 parents 8226231 + 98eac0f commit a1c8b6e

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)