summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-08-27 00:59:58 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-08-27 00:59:58 +0200
commit8cf9336bcbe527c3d3eb7b348f3a0feff799c1da (patch)
tree139922b8343a667017b4a0c54b7919b2bc944773 /lib/helper.php
parent1e4ebf47e26579d6bd0334b4853ee0c960c1b2a6 (diff)
downloadnextcloud-server-8cf9336bcbe527c3d3eb7b348f3a0feff799c1da.tar.gz
nextcloud-server-8cf9336bcbe527c3d3eb7b348f3a0feff799c1da.zip
storage information is path specific
Diffstat (limited to 'lib/helper.php')
-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) {