mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
perf: No need to setup the full filesystem for getting storage info
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
d5c40a66fc
commit
0040d9b9fd
1 changed files with 0 additions and 1 deletions
|
|
@ -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…
Reference in a new issue