Get filesize() if file_exists()

Should make sense.
This commit is contained in:
acsfer 2021-09-09 12:10:09 +02:00 committed by backportbot[bot]
parent efaf112d67
commit 0c1ccde7d2

View file

@ -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);