diff options
author | acsfer <carlos@reendex.com> | 2021-10-04 17:20:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-04 17:20:17 +0200 |
commit | 8a8df49bc0f7a4f540a9d642fa3518f5d0b64803 (patch) | |
tree | 2785f9e766b6d837508dc6e2d31b377f78ad9c4c /lib | |
parent | 3a25183b66d30d34ca10d3b2411d8d333face4fd (diff) | |
download | nextcloud-server-8a8df49bc0f7a4f540a9d642fa3518f5d0b64803.tar.gz nextcloud-server-8a8df49bc0f7a4f540a9d642fa3518f5d0b64803.zip |
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 7f0bdbb6113..72a1ad90d6e 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -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); |