Commit ed835973 authored by Robin Appelman's avatar Robin Appelman
Browse files

Return unknown freespace if the free_space call failed

Fixes #2312
parent abe408e9
......@@ -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 $space;
public function search($query) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment