diff --git a/lib/ocs/cloud.php b/lib/ocs/cloud.php index 2b53f00770..d617f68526 100644 --- a/lib/ocs/cloud.php +++ b/lib/ocs/cloud.php @@ -59,7 +59,7 @@ class OC_OCS_Cloud { if(OC_User::userExists($parameters['user'])) { // calculate the disc space $userDir = '/'.$parameters['user'].'/files'; - \OC\Files\Filesystem::init($useDir); + \OC\Files\Filesystem::init($userDir); $rootInfo = \OC\Files\Filesystem::getFileInfo(''); $sharedInfo = \OC\Files\Filesystem::getFileInfo('/Shared'); $used = $rootInfo['size'] - $sharedInfo['size'];