aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Command/Object/ListObject.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/ListObject.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/ListObject.php')
-rw-r--r--apps/files/lib/Command/Object/ListObject.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/lib/Command/Object/ListObject.php b/apps/files/lib/Command/Object/ListObject.php
index f63eb9c2260..5d30232e09f 100644
--- a/apps/files/lib/Command/Object/ListObject.php
+++ b/apps/files/lib/Command/Object/ListObject.php
@@ -42,7 +42,8 @@ class ListObject extends Base {
return self::FAILURE;
}
$objects = $objectStore->listObjects();
- $this->objectUtils->writeIteratorToOutput($input, $output, $objects, self::CHUNK_SIZE);
+ $objects = $this->objectUtils->formatObjects($objects, $input->getOption('output') === self::OUTPUT_FORMAT_PLAIN);
+ $this->writeStreamingTableInOutputFormat($input, $output, $objects, self::CHUNK_SIZE);
return self::SUCCESS;
}