diff --git a/cmd/client-s3.go b/cmd/client-s3.go index 306c7b1b07..8c9ecdef1f 100644 --- a/cmd/client-s3.go +++ b/cmd/client-s3.go @@ -1438,7 +1438,7 @@ func (c *s3Client) listRecursiveInRoutineDirOpt(contentCh chan *clientContent, d return } buckets = append(buckets, minio.BucketInfo{Name: bucket, CreationDate: content.Time}) - } else if strings.HasSuffix(object, string(c.targetURL.Separator)) { + } else { // Get stat of given object is a directory. isIncomplete := false isFetchMeta := false