diff options
author | acsfer <carlos@reendex.com> | 2021-09-09 12:10:09 +0200 |
---|---|---|
committer | acsfer (Rebase PR Action) <carlos@reendex.com> | 2021-10-01 21:02:38 +0000 |
commit | 3a25183b66d30d34ca10d3b2411d8d333face4fd (patch) | |
tree | 0431a751afad6e28309edc4e8ab9d07925e02f68 /lib/private/Files | |
parent | fb2fd3457650464230e052a91f573ba052950fef (diff) | |
download | nextcloud-server-3a25183b66d30d34ca10d3b2411d8d333face4fd.tar.gz nextcloud-server-3a25183b66d30d34ca10d3b2411d8d333face4fd.zip |
Get `filesize()` if `file_exists()`
Should make sense.
Diffstat (limited to 'lib/private/Files')
-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 ccd331f515f..7f0bdbb6113 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)) { + if ($this->is_dir($path) || !$this->file_exists($path)) { return 0; } $fullPath = $this->getSourcePath($path); |