Skip to content

Commit 9492c94

Browse files
committed
fix: Fix "Unknown path" error when source user files folder has not been initialized
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 parent f018222 commit 9492c94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/files/lib/Service/OwnershipTransferService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ public function transfer(
8585
// Requesting the user folder will set it up if the user hasn't logged in before
8686
// We need a setupFS for the full filesystem setup before as otherwise we will just return
8787
// a lazy root folder which does not create the destination users folder
88+
\OC_Util::setupFS($sourceUser->getUID());
8889
\OC_Util::setupFS($destinationUser->getUID());
90+
\OC::$server->getUserFolder($sourceUser->getUID());
8991
\OC::$server->getUserFolder($destinationUser->getUID());
9092
Filesystem::initMountPoints($sourceUid);
9193
Filesystem::initMountPoints($destinationUid);

0 commit comments

Comments
 (0)