diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php index 02e8df4af4e944da1e96466bd1a26bb19c8cf214..db3c6bfca3a7b843826aa4c08ef1bc58afad0b7b 100644 --- a/lib/private/files/storage/local.php +++ b/lib/private/files/storage/local.php @@ -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;