Correctly calculate used space for quota with external storage

issue #4348

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Ardinis 2017-04-16 02:32:14 +02:00 committed by Morris Jobke
parent d83f1d96d4
commit 40560ca98d

View file

@ -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();