mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
feat(transfer-ownership): Improve verbose output of command
Makes debbuging way easier Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
8ab31fd4ab
commit
3a6d4ae3aa
1 changed files with 2 additions and 0 deletions
|
|
@ -420,6 +420,7 @@ class OwnershipTransferService {
|
|||
|
||||
foreach ($shares as ['share' => $share, 'suffix' => $suffix]) {
|
||||
try {
|
||||
$output->writeln('Transfering share ' . $share->getId() . ' of type ' . $share->getShareType(), OutputInterface::VERBOSITY_VERBOSE);
|
||||
if ($share->getShareType() === IShare::TYPE_USER &&
|
||||
$share->getSharedWith() === $destinationUid) {
|
||||
// Unmount the shares before deleting, so we don't try to get the storage later on.
|
||||
|
|
@ -457,6 +458,7 @@ class OwnershipTransferService {
|
|||
// Try to get the new ID from the target path and suffix of the share
|
||||
$node = $rootFolder->get(Filesystem::normalizePath($targetLocation . '/' . $suffix));
|
||||
$newNodeId = $node->getId();
|
||||
$output->writeln('Had to change node id to ' . $newNodeId, OutputInterface::VERBOSITY_VERY_VERBOSE);
|
||||
}
|
||||
$share->setNodeId($newNodeId);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue