aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-10-07 15:35:47 +0200
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-10-15 14:37:49 +0200
commit3a6d4ae3aa4c76acec286191205159671cd84f29 (patch)
treec8ef0b5d0b6b4d4ec78cd83b523c03b1e1958f42 /apps
parent8ab31fd4ab6761418134d3776333e424deda700a (diff)
downloadnextcloud-server-3a6d4ae3aa4c76acec286191205159671cd84f29.tar.gz
nextcloud-server-3a6d4ae3aa4c76acec286191205159671cd84f29.zip
feat(transfer-ownership): Improve verbose output of command
Makes debbuging way easier Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/lib/Service/OwnershipTransferService.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php
index 71c3731b66b..c725bf6a4a6 100644
--- a/apps/files/lib/Service/OwnershipTransferService.php
+++ b/apps/files/lib/Service/OwnershipTransferService.php
@@ -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);