]> source.dussan.org Git - nextcloud-server.git/commitdiff
perf: No need to setup the full filesystem for getting storage info 36646/head
authorJulius Härtl <jus@bitgrid.net>
Thu, 9 Feb 2023 21:58:35 +0000 (22:58 +0100)
committerJulius Härtl <jus@bitgrid.net>
Thu, 9 Feb 2023 21:58:35 +0000 (22:58 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/files/lib/Controller/ViewController.php

index b607764e602fb699302a4dea1f5a17c9ee851cd2..fe3e2f11ca84ae3a8d90530914bac348391984b6 100644 (file)
@@ -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);