aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files/lib/Controller/AjaxController.php1
-rw-r--r--lib/private/Files/SetupManager.php6
2 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/lib/Controller/AjaxController.php b/apps/files/lib/Controller/AjaxController.php
index 000d950595d..cd26ab7a6f8 100644
--- a/apps/files/lib/Controller/AjaxController.php
+++ b/apps/files/lib/Controller/AjaxController.php
@@ -40,7 +40,6 @@ class AjaxController extends Controller {
* @NoAdminRequired
*/
public function getStorageStats(string $dir = '/'): JSONResponse {
- \OC_Util::setupFS();
try {
return new JSONResponse([
'status' => 'success',
diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php
index ddb0bbceb81..d091b5c5e35 100644
--- a/lib/private/Files/SetupManager.php
+++ b/lib/private/Files/SetupManager.php
@@ -367,6 +367,12 @@ class SetupManager {
return;
}
+ // for the user's home folder, it's always the home mount
+ if (rtrim($path) === "/" . $user->getUID() . "/files" && !$includeChildren) {
+ $this->oneTimeUserSetup($user);
+ return;
+ }
+
if (!isset($this->setupUserMountProviders[$user->getUID()])) {
$this->setupUserMountProviders[$user->getUID()] = [];
}