Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

adjust collection list output

Chris Lu22fbbf023b18
diff --git a/weed/shell/command_collection_list.go b/weed/shell/command_collection_list.go
index 34a406d674..f5ed6cfa64 100644
--- a/weed/shell/command_collection_list.go
+++ b/weed/shell/command_collection_list.go
@@ -30,7 +30,7 @@ func (c *commandCollectionList) Do(args []string, commandEnv *commandEnv, writer
}
for _, c := range resp.Collections {
- fmt.Fprintf(writer, "collection:\"%s\"\n", c.GetName())
+ fmt.Fprintf(writer, "collection:\"%s\"\treplication:\"%s\"\tTTL:\"%s\"\n", c.GetName(), c.GetReplication(), c.GetTtl())
}
fmt.Fprintf(writer, "Total %d collections.\n", len(resp.Collections))