浏览代码

Get `filesize()` if `file_exists()`

Should make sense.
tags/v23.0.0beta1
acsfer 2 年前
父节点
当前提交
3a25183b66
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      lib/private/Files/Storage/Local.php

+ 1
- 1
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);

正在加载...
取消
保存