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

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/37625/head
Julius Härtl 3 years ago
parent 0126247439
commit b62e29051e
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
  1. 3
      apps/files/lib/Service/OwnershipTransferService.php

@ -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);

Loading…
Cancel
Save