From: Michael Gapczynski Date: Sat, 23 Feb 2013 20:37:44 +0000 (-0500) Subject: Don't throw insufficient storage exception if free space is unknown X-Git-Tag: v5.0.0beta2~20^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a2d3333a09f9e77429f7c2c85e9d405bec453ab9;p=nextcloud-server.git Don't throw insufficient storage exception if free space is unknown --- diff --git a/lib/connector/sabre/quotaplugin.php b/lib/connector/sabre/quotaplugin.php index ce9a968eb3c..233159e3646 100644 --- a/lib/connector/sabre/quotaplugin.php +++ b/lib/connector/sabre/quotaplugin.php @@ -50,7 +50,8 @@ class OC_Connector_Sabre_QuotaPlugin extends Sabre_DAV_ServerPlugin { $uri='/'.$uri; } list($parentUri, $newName) = Sabre_DAV_URLUtil::splitPath($uri); - if ($length > \OC\Files\Filesystem::free_space($parentUri)) { + $freeSpace = \OC\Files\Filesystem::free_space($parentUri); + if ($freeSpace !== \OC\Files\FREE_SPACE_UNKNOWN && $length > \OC\Files\Filesystem::free_space($parentUri)) { throw new Sabre_DAV_Exception_InsufficientStorage(); } }