Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions lib/private/Files/SetupManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,13 +380,9 @@ public function setupForPath(string $path, bool $includeChildren = false): void
return;
}

// for the user's home folder, it's always the home mount
if (rtrim($path) === "/" . $user->getUID() . "/files") {
if ($includeChildren) {
$this->setupForUser($user);
} else {
$this->oneTimeUserSetup($user);
}
// for the user's home folder, and includes children we need everything always
if (rtrim($path) === "/" . $user->getUID() . "/files" && $includeChildren) {
$this->setupForUser($user);
return;
}

Expand Down