Skip to content

Commit

Permalink
fix: improve occ file:transfer-ownership logging
Browse files Browse the repository at this point in the history
Signed-off-by: grnd-alt <github@belakkaf.net>
  • Loading branch information
grnd-alt committed Feb 5, 2025
1 parent 1407a1d commit 3b85ca0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/files/lib/Service/OwnershipTransferService.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ public function transfer(
$sourcePath
);

$sourceSize = $view->getFileInfo($sourcePath)->getSize();

// transfer the files
$this->transferFiles(
$sourceUid,
Expand All @@ -149,6 +151,7 @@ public function transfer(
$view,
$output
);
$sizeDifference = $sourceSize - $view->getFileInfo($finalTarget)->getSize();

// transfer the incoming shares
if ($transferIncomingShares === true) {
Expand Down Expand Up @@ -184,6 +187,8 @@ public function transfer(
$shares,
$output
);

$output->writeln("Size difference after transfer: $sizeDifference");
}

private function sanitizeFolderName(string $name): string {
Expand Down

0 comments on commit 3b85ca0

Please sign in to comment.