summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Helper.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-03-28 15:32:34 +0200
committerRobin Appelman <robin@icewind.nl>2022-03-28 15:57:28 +0200
commit5ae6cefd57b2374802b428f9e03c60ba951c5607 (patch)
tree647b6add8977e7c89419d24fbcb99edfa42d2d83 /lib/private/legacy/OC_Helper.php
parentc407bb978684f00ce07a4f168d3e380da3812028 (diff)
downloadnextcloud-server-5ae6cefd57b2374802b428f9e03c60ba951c5607.tar.gz
nextcloud-server-5ae6cefd57b2374802b428f9e03c60ba951c5607.zip
dont re-query fileinfo when getting dav quota
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/legacy/OC_Helper.php')
-rw-r--r--lib/private/legacy/OC_Helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/OC_Helper.php b/lib/private/legacy/OC_Helper.php
index efb9252e346..547ffef8607 100644
--- a/lib/private/legacy/OC_Helper.php
+++ b/lib/private/legacy/OC_Helper.php
@@ -485,7 +485,7 @@ class OC_Helper {
* @return array
* @throws \OCP\Files\NotFoundException
*/
- public static function getStorageInfo($path, $rootInfo = null) {
+ public static function getStorageInfo($path, $rootInfo = null, $includeMountPoints = true) {
// return storage info without adding mount points
$includeExtStorage = \OC::$server->getSystemConfig()->getValue('quota_include_external_storage', false);
@@ -495,7 +495,7 @@ class OC_Helper {
if (!$rootInfo instanceof \OCP\Files\FileInfo) {
throw new \OCP\Files\NotFoundException();
}
- $used = $rootInfo->getSize();
+ $used = $rootInfo->getSize($includeMountPoints);
if ($used < 0) {
$used = 0;
}