diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-02-09 22:58:35 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2023-02-09 22:58:35 +0100 |
commit | 0040d9b9fd7163f3df179e2c06dc5e62f4bd1bcf (patch) | |
tree | e12de7c61bc8a1262d6bfaac7063af5dd3074b80 | |
parent | d5c40a66fcbea2493326144b06e7a7d66a86ff28 (diff) | |
download | nextcloud-server-0040d9b9fd7163f3df179e2c06dc5e62f4bd1bcf.tar.gz nextcloud-server-0040d9b9fd7163f3df179e2c06dc5e62f4bd1bcf.zip |
perf: No need to setup the full filesystem for getting storage info
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 1 |
1 files changed, 0 insertions, 1 deletions
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); |