mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Return SPACE_UNKNOWN if disk_free_space is disabled when getting the free space on a local storage
This commit is contained in:
parent
095f9b8ee0
commit
25370fcb82
1 changed files with 1 additions and 1 deletions
|
|
@ -256,7 +256,7 @@ if (\OC_Util::runningOnWindows()) {
|
|||
|
||||
public function free_space($path) {
|
||||
$space = @disk_free_space($this->datadir . $path);
|
||||
if ($space === false) {
|
||||
if ($space === false || is_null($space)) {
|
||||
return \OC\Files\SPACE_UNKNOWN;
|
||||
}
|
||||
return $space;
|
||||
|
|
|
|||
Loading…
Reference in a new issue