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
path: root/lib
diff options
context:
space:
mode:
authoracsfer <carlos@reendex.com>2021-10-04 18:20:17 +0300
committerJohn Molakvoæ (Rebase PR Action) <skjnldsv@users.noreply.github.com>2021-10-21 10:36:22 +0300
commitd84579196870656bb85e9b7f8e65a54cfbd51512 (patch)
tree16deae06f6f1cb16a85cbb42d8475a598cff75cd /lib
parentf902cfaffe69c7c5f230d6b4edfa6a99f4b35fa8 (diff)
Replace `file_exists()` method by `is_file()`
Diffstat (limited to 'lib')
-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 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);