diff options
author | acsfer <carlos@reendex.com> | 2021-10-04 18:20:17 +0300 |
---|---|---|
committer | John Molakvoæ (Rebase PR Action) <skjnldsv@users.noreply.github.com> | 2021-10-21 10:36:22 +0300 |
commit | d84579196870656bb85e9b7f8e65a54cfbd51512 (patch) | |
tree | 16deae06f6f1cb16a85cbb42d8475a598cff75cd /lib | |
parent | f902cfaffe69c7c5f230d6b4edfa6a99f4b35fa8 (diff) |
Replace `file_exists()` method by `is_file()`
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/Local.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index 9315a7fab90..c2486c567cf 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -217,7 +217,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); |