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
Prev Previous commit
Next Next commit
Replace file_exists() method by is_file()
  • Loading branch information
solracsf authored Oct 4, 2021
commit 8a8df49bc0f7a4f540a9d642fa3518f5d0b64803
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) || !$this->file_exists($path)) {
if ($this->is_dir($path) || !$this->is_file($path)) {
return 0;
}
$fullPath = $this->getSourcePath($path);
Expand Down