aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Command/Object/Orphans.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-03-28 15:23:13 +0100
committerRobin Appelman <robin@icewind.nl>2025-03-28 15:23:13 +0100
commita91f313a1c5796429cfb39b0e2e507e221532282 (patch)
tree42160752c77f18a908517aa10076e0eff01f61b7 /apps/files/lib/Command/Object/Orphans.php
parenta157ba729ef804f50f9746998deba07137b0190b (diff)
downloadnextcloud-server-object-store-orphan.tar.gz
nextcloud-server-object-store-orphan.zip
feat: move streaming output helps to command base classobject-store-orphan
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files/lib/Command/Object/Orphans.php')
-rw-r--r--apps/files/lib/Command/Object/Orphans.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Command/Object/Orphans.php b/apps/files/lib/Command/Object/Orphans.php
index aac05f2d4c0..f7132540fc8 100644
--- a/apps/files/lib/Command/Object/Orphans.php
+++ b/apps/files/lib/Command/Object/Orphans.php
@@ -63,9 +63,9 @@ class Orphans extends Base {
$fileId = (int)substr($object['urn'], $prefixLength);
return !$this->fileIdInDb($fileId);
});
- $orphans->rewind();
- $this->objectUtils->writeIteratorToOutput($input, $output, $orphans, self::CHUNK_SIZE);
+ $orphans = $this->objectUtils->formatObjects($orphans, $input->getOption('output') === self::OUTPUT_FORMAT_PLAIN);
+ $this->writeStreamingTableInOutputFormat($input, $output, $orphans, self::CHUNK_SIZE);
return self::SUCCESS;
}