Browse Source

perf: No need to setup the full filesystem for getting storage info

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/36646/head
Julius Härtl 3 years ago
parent
commit
0040d9b9fd
No known key found for this signature in database GPG Key ID: 4C614C6ED2CDE6DF
  1. 1
      apps/files/lib/Controller/ViewController.php

1
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);

Loading…
Cancel
Save