From: Ardinis Date: Sun, 16 Apr 2017 00:32:14 +0000 (+0200) Subject: Correctly calculate used space for quota with external storage X-Git-Tag: v12.0.0beta3~17^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=40560ca98d0f390e417ec8b2f102af0494711dc0;p=nextcloud-server.git Correctly calculate used space for quota with external storage issue #4348 Signed-off-by: Morris Jobke --- diff --git a/lib/private/legacy/helper.php b/lib/private/legacy/helper.php index 9c4bc895fb9..6775fe99dcd 100644 --- a/lib/private/legacy/helper.php +++ b/lib/private/legacy/helper.php @@ -537,7 +537,7 @@ class OC_Helper { $includeExtStorage = \OC::$server->getSystemConfig()->getValue('quota_include_external_storage', false); if (!$rootInfo) { - $rootInfo = \OC\Files\Filesystem::getFileInfo($path, false); + $rootInfo = \OC\Files\Filesystem::getFileInfo($path, $includeExtStorage ? 'ext' : false); } if (!$rootInfo instanceof \OCP\Files\FileInfo) { throw new \OCP\Files\NotFoundException();