diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-14 14:05:18 -0700 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-14 14:05:18 -0700 |
commit | 1da6f79d3b9178bf2b5dd7f9a924c1258495b8a1 (patch) | |
tree | 7bc6fb9d73092f8d0320db3169c0fa8c4ff4770b /lib | |
parent | abe408e934d1620a500d9be365e265c9fd635b27 (diff) | |
parent | ed8359737199a8a6640986e00df80d971aa6e1d7 (diff) | |
download | nextcloud-server-1da6f79d3b9178bf2b5dd7f9a924c1258495b8a1.tar.gz nextcloud-server-1da6f79d3b9178bf2b5dd7f9a924c1258495b8a1.zip |
Merge pull request #2318 from owncloud/unkown-freespace
Return unknown freespace if the free_space call failed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/files/storage/local.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/files/storage/local.php b/lib/files/storage/local.php index da6597c8057..7b637a97059 100644 --- a/lib/files/storage/local.php +++ b/lib/files/storage/local.php @@ -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) { |