From: Julius Härtl Date: Thu, 9 Feb 2023 21:58:35 +0000 (+0100) Subject: perf: No need to setup the full filesystem for getting storage info X-Git-Tag: v26.0.0beta4~23^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F36646%2Fhead;p=nextcloud-server.git perf: No need to setup the full filesystem for getting storage info Signed-off-by: Julius Härtl --- diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index b607764e602..fe3e2f11ca8 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -137,7 +137,6 @@ class ViewController extends Controller { * @throws \OCP\Files\NotFoundException */ protected function getStorageInfo(string $dir = '/') { - \OC_Util::setupFS(); $rootInfo = \OC\Files\Filesystem::getFileInfo('/', false); return \OC_Helper::getStorageInfo($dir, $rootInfo ?: null);