mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
Merge pull request #28768 from nextcloud/check-file-exists
This commit is contained in:
commit
a1c8b6e9eb
@ -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 New Issue
Block a user