Skip to content
Snippets Groups Projects
Commit 1da6f79d authored by Bernhard Posselt's avatar Bernhard Posselt
Browse files

Merge pull request #2318 from owncloud/unkown-freespace

Return unknown freespace if the free_space call failed
parents abe408e9 ed835973
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment