diff options
author | Robin Appelman <robin@icewind.nl> | 2025-03-28 15:23:13 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2025-03-28 15:23:13 +0100 |
commit | a91f313a1c5796429cfb39b0e2e507e221532282 (patch) | |
tree | 42160752c77f18a908517aa10076e0eff01f61b7 /apps/files/lib/Command/Object/ListObject.php | |
parent | a157ba729ef804f50f9746998deba07137b0190b (diff) | |
download | nextcloud-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.php | 3 |
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; } |