Replace `file_exists()` method by `is_file()`

pull/28768/head
acsfer 3 years ago committed by GitHub
parent 3a25183b66
commit 8a8df49bc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -216,7 +216,7 @@ class Local extends \OC\Files\Storage\Common {
}
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);

Loading…
Cancel
Save