Skip to content

Commit

Permalink
fix: Fix "Unknown path" error when source user files folder has not…
Browse files Browse the repository at this point in the history
… been initialized

Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Aug 26, 2024
1 parent 21b997f commit aa51cba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/files/lib/Service/OwnershipTransferService.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ public function transfer(
// Requesting the user folder will set it up if the user hasn't logged in before
// We need a setupFS for the full filesystem setup before as otherwise we will just return
// a lazy root folder which does not create the destination users folder
\OC_Util::setupFS($sourceUser->getUID());
\OC_Util::setupFS($destinationUser->getUID());
\OC::$server->getUserFolder($sourceUser->getUID());
\OC::$server->getUserFolder($destinationUser->getUID());
Filesystem::initMountPoints($sourceUid);
Filesystem::initMountPoints($destinationUid);
Expand Down

0 comments on commit aa51cba

Please sign in to comment.