Fix listing buckets and also figure out how to do so

This commit is contained in:
Bel LaPointe
2020-02-07 08:06:17 -07:00
parent 518ffe6364
commit d3a169ae19
2 changed files with 9 additions and 6 deletions

View File

@@ -30,6 +30,9 @@ func (m *Minio) List(ns []string, limits ...string) ([]string, error) {
defer close(done)
keys := []string{}
for resp := range m.db.ListObjects(namespace, "", true, done) {
if resp.Err != nil {
return keys, resp.Err
}
if resp.Key < limits[0] {
continue
} else if resp.Key > limits[1] {