From 8cf9336bcbe527c3d3eb7b348f3a0feff799c1da Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Tue, 27 Aug 2013 00:59:58 +0200 Subject: storage information is path specific --- lib/helper.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') 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) { -- cgit v1.2.3