Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoracsfer <carlos@reendex.com>2021-10-04 18:20:17 +0300
committerGitHub <noreply@github.com>2021-10-04 18:20:17 +0300
commit8a8df49bc0f7a4f540a9d642fa3518f5d0b64803 (patch)
tree2785f9e766b6d837508dc6e2d31b377f78ad9c4c /lib/private/Files/Storage
parent3a25183b66d30d34ca10d3b2411d8d333face4fd (diff)
Replace `file_exists()` method by `is_file()`
Diffstat (limited to 'lib/private/Files/Storage')
-rw-r--r--lib/private/Files/Storage/Local.php2
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);