Skip to content

Commit

Permalink
Merge pull request #28768 from nextcloud/check-file-exists
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Oct 18, 2021
2 parents 8226231 + 98eac0f commit a1c8b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Local.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function filetype($path) {
}

public function filesize($path) {
if ($this->is_dir($path)) {
if (!$this->is_file($path)) {
return 0;
}
$fullPath = $this->getSourcePath($path);
Expand Down

0 comments on commit a1c8b6e

Please sign in to comment.