Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Get filesize() if file_exists()
Should make sense.
  • Loading branch information
solracsf authored and skjnldsv committed Oct 21, 2021
commit f902cfaffe69c7c5f230d6b4edfa6a99f4b35fa8
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Local.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function filetype($path) {
}

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