summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-06 23:03:09 +0100
committerGitHub <noreply@github.com>2020-11-06 23:03:09 +0100
commit1a30e4d28f1fccae652c104f734a8f57b9efd4e4 (patch)
treebcd845da350dcebf6fb78259c9a65d7850fc1bf2 /apps/files
parentcab80e685b973c3e63b1d298873860eea862dc06 (diff)
parent448044d83163a27d0a07f1067f5b4aeffe2d0ba9 (diff)
downloadnextcloud-server-1a30e4d28f1fccae652c104f734a8f57b9efd4e4.tar.gz
nextcloud-server-1a30e4d28f1fccae652c104f734a8f57b9efd4e4.zip
Merge pull request #23821 from nextcloud/td/enh/no_fs_setup_by_default
Do not setup the default FS on normal routes
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/lib/Controller/AjaxController.php1
-rw-r--r--apps/files/lib/Controller/ViewController.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/lib/Controller/AjaxController.php b/apps/files/lib/Controller/AjaxController.php
index 52b774915ea..51a4a5b2a37 100644
--- a/apps/files/lib/Controller/AjaxController.php
+++ b/apps/files/lib/Controller/AjaxController.php
@@ -41,6 +41,7 @@ class AjaxController extends Controller {
* @NoAdminRequired
*/
public function getStorageStats(string $dir = '/'): JSONResponse {
+ \OC_Util::setupFS();
try {
return new JSONResponse([
'status' => 'success',
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);