From 48d843858de095e83105f55d6b994ad41939f5d4 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma <roeland@famdouma.nl> Date: Sat, 31 Oct 2020 15:10:48 +0100 Subject: Do not setup the default FS on normal routes This should help with load times hopefully. Only initialize the FS if we actually ned it. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> --- apps/files/lib/Controller/ViewController.php | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/files') diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index c5ff6eff194..4a456574973 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -134,6 +134,7 @@ class ViewController extends Controller { * @throws \OCP\Files\NotFoundException */ protected function getStorageInfo() { + \OC_Util::setupFS(); $dirInfo = \OC\Files\Filesystem::getFileInfo('/', false); return \OC_Helper::getStorageInfo('/', $dirInfo); -- cgit v1.2.3