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
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with
0 additions and
1 deletions
-
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); |
|
|
|
|