List objects recursively

This commit is contained in:
Lena Fuhrimann 2017-03-31 09:56:06 +02:00
parent 86ea7a2a2a
commit a9a88552d7
2 changed files with 2 additions and 3 deletions

View file

@ -15,8 +15,7 @@ import (
func main() {
s3 := datasources.NewMinioClient()
logger := log.New(os.Stdout, "request: ", log.Lshortfile)
logger := log.New(os.Stdout, "", log.Ldate|log.Ltime)
router := mux.NewRouter()
router.

View file

@ -34,7 +34,7 @@ func BucketHandler(s3 *minio.Client) http.Handler {
}
doneCh := make(chan struct{})
objectCh := s3.ListObjectsV2(bucketName, "", false, doneCh)
objectCh := s3.ListObjectsV2(bucketName, "", true, doneCh)
for object := range objectCh {
if object.Err != nil {
msg := "error listing objects"