summaryrefslogtreecommitdiffstats
path: root/lib/ocs/cloud.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ocs/cloud.php')
-rw-r--r--lib/ocs/cloud.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ocs/cloud.php b/lib/ocs/cloud.php
index 2d18b1db3f2..179ed8f3107 100644
--- a/lib/ocs/cloud.php
+++ b/lib/ocs/cloud.php
@@ -45,11 +45,11 @@ class OC_OCS_Cloud {
if(OC_User::userExists($parameters['user'])) {
// calculate the disc space
$userDir = '/'.$parameters['user'].'/files';
- OC_Filesystem::init($userDir);
- $rootInfo = OC_FileCache::get('');
- $sharedInfo = OC_FileCache::get('/Shared');
+ \OC\Files\Filesystem::init($useDir);
+ $rootInfo = \OC\Files\Filesystem::getFileInfo('');
+ $sharedInfo = \OC\Files\Filesystem::getFileInfo('/Shared');
$used = $rootInfo['size'] - $sharedInfo['size'];
- $free = OC_Filesystem::free_space();
+ $free = \OC\Files\Filesystem::free_space();
$total = $free + $used;
if($total===0) $total = 1; // prevent division by zero
$relative = round(($used/$total)*10000)/100;