summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-08-27 00:57:28 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-08-27 00:57:28 +0200
commit1e4ebf47e26579d6bd0334b4853ee0c960c1b2a6 (patch)
treeeb1d03cf47c0b4fcfe92d1ffa828739323cf3915 /lib/helper.php
parent7d141656ee837199f58d6a29033ded7d5c2a4632 (diff)
downloadnextcloud-server-1e4ebf47e26579d6bd0334b4853ee0c960c1b2a6.tar.gz
nextcloud-server-1e4ebf47e26579d6bd0334b4853ee0c960c1b2a6.zip
webdav quota now displays the same values as the web interface does
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/helper.php b/lib/helper.php
index c7687d431e1..128786087b8 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -843,13 +843,13 @@ class OC_Helper {
/**
* Calculate the disc space
*/
- public static function getStorageInfo() {
- $rootInfo = \OC\Files\Filesystem::getFileInfo('/');
+ public static function getStorageInfo($path = '/') {
+ $rootInfo = \OC\Files\Filesystem::getFileInfo($path);
$used = $rootInfo['size'];
if ($used < 0) {
$used = 0;
}
- $free = \OC\Files\Filesystem::free_space();
+ $free = \OC\Files\Filesystem::free_space($path);
if ($free >= 0) {
$total = $free + $used;
} else {