Browse Source

bucket list only directories

pull/2078/head
Chris Lu 4 years ago
parent
commit
b70aeb7585
  1. 3
      weed/shell/command_s3_bucket_list.go

3
weed/shell/command_s3_bucket_list.go

@ -46,6 +46,9 @@ func (c *commandS3BucketList) Do(args []string, commandEnv *CommandEnv, writer i
}
err = filer_pb.List(commandEnv, filerBucketsPath, "", func(entry *filer_pb.Entry, isLast bool) error {
if !entry.IsDirectory {
return nil
}
if entry.Attributes.Replication == "" || entry.Attributes.Replication == "000" {
fmt.Fprintf(writer, " %s\n", entry.Name)
} else {

Loading…
Cancel
Save