mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #28768 from nextcloud/check-file-exists
This commit is contained in:
commit
a1c8b6e9eb
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ class Local extends \OC\Files\Storage\Common {
|
|||
}
|
||||
|
||||
public function filesize($path) {
|
||||
if ($this->is_dir($path)) {
|
||||
if (!$this->is_file($path)) {
|
||||
return 0;
|
||||
}
|
||||
$fullPath = $this->getSourcePath($path);
|
||||
|
|
|
|||
Loading…
Reference in a new issue