summaryrefslogtreecommitdiffstats
path: root/lib/private/helper.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-18 17:29:30 +0100
committerVincent Petry <pvince81@owncloud.com>2013-11-18 18:09:01 +0100
commit614e4d485c8b74f6879c401f8cbb93e9335bf9b3 (patch)
tree7b30c6fe4da0b984525aec5e938e40cf6406a059 /lib/private/helper.php
parent44c2f9aad2b475303b3bebb39f38954cb3210751 (diff)
downloadnextcloud-server-614e4d485c8b74f6879c401f8cbb93e9335bf9b3.tar.gz
nextcloud-server-614e4d485c8b74f6879c401f8cbb93e9335bf9b3.zip
External storage space is now not counted in total space
Added argument to getFileInfo() to disable adding the size of mountpoints to a directory's size. Fixes #5924
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r--lib/private/helper.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index 48031c1467f..c82d3bd4ef4 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -876,7 +876,8 @@ class OC_Helper {
* @return array
*/
public static function getStorageInfo($path) {
- $rootInfo = \OC\Files\Filesystem::getFileInfo($path);
+ // return storage info without adding mount points
+ $rootInfo = \OC\Files\Filesystem::getFileInfo($path, false);
$used = $rootInfo['size'];
if ($used < 0) {
$used = 0;