mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 07:08:34 -04:00
parent
abe408e934
commit
ed83597371
1 changed files with 5 additions and 1 deletions
|
|
@ -218,7 +218,11 @@ class Local extends \OC\Files\Storage\Common{
|
|||
}
|
||||
|
||||
public function free_space($path) {
|
||||
return @disk_free_space($this->datadir.$path);
|
||||
$space = @disk_free_space($this->datadir.$path);
|
||||
if($space === false){
|
||||
return \OC\Files\FREE_SPACE_UNKNOWN;
|
||||
}
|
||||
return $space;
|
||||
}
|
||||
|
||||
public function search($query) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue