summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/helper.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 128786087b8..dd2476eda5c 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -841,9 +841,12 @@ class OC_Helper {
}
/**
- * Calculate the disc space
+ * Calculate the disc space for the given path
+ *
+ * @param string $path
+ * @return array
*/
- public static function getStorageInfo($path = '/') {
+ public static function getStorageInfo($path) {
$rootInfo = \OC\Files\Filesystem::getFileInfo($path);
$used = $rootInfo['size'];
if ($used < 0) {