Browse Source

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

tags/v23.0.0beta1
acsfer 2 years ago
parent
commit
8a8df49bc0
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/private/Files/Storage/Local.php

+ 1
- 1
lib/private/Files/Storage/Local.php View File

@@ -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