diff options
author | Christopher Ng <chrng8@gmail.com> | 2024-06-25 16:18:30 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2024-10-16 15:26:33 -0700 |
commit | 53f0b3789e19e94e323f9e2ea827b90ae10a7a63 (patch) | |
tree | dafd9d023aae860933f22affa8d0e88832ffe12b | |
parent | 923ce7b93727edaba4509f605a270bc619479640 (diff) | |
download | nextcloud-server-53f0b3789e19e94e323f9e2ea827b90ae10a7a63.tar.gz nextcloud-server-53f0b3789e19e94e323f9e2ea827b90ae10a7a63.zip |
fix: Fix "Unknown path" error when source user `files` folder has not been initialized
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r-- | apps/files/lib/Service/OwnershipTransferService.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php index 2b06d18efcf..720b7c62e21 100644 --- a/apps/files/lib/Service/OwnershipTransferService.php +++ b/apps/files/lib/Service/OwnershipTransferService.php @@ -88,7 +88,9 @@ class OwnershipTransferService { // 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); |