Replace file_exists() method by is_file()

This commit is contained in:
acsfer 2021-10-04 17:20:17 +02:00 committed by backportbot[bot]
parent 0c1ccde7d2
commit aeb0ad8cea

View file

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