fix: Always create user directory when transfering files to new users

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2023-04-06 20:51:56 +02:00
parent 0126247439
commit b62e29051e
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

@ -115,6 +115,9 @@ class OwnershipTransferService {
// setup filesystem
// 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($destinationUser->getUID());
\OC::$server->getUserFolder($destinationUser->getUID());
Filesystem::initMountPoints($sourceUid);
Filesystem::initMountPoints($destinationUid);