This website works better with JavaScript.
Home
Explore
Help
Sign In
mirrors
/
nextcloud
mirror of
https://github.com/nextcloud/server.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
997
Wiki
Activity
Browse Source
Get `filesize()` if `file_exists()`
Should make sense.
tags/v23.0.0beta1
acsfer
2 years ago
parent
fb2fd34576
commit
3a25183b66
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
1
1
lib/private/Files/Storage/Local.php
+ 1
- 1
lib/private/Files/Storage/Local.php
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);
Write
Preview
Loading…
Cancel
Save