From 43388a06ca2bfb6f5ea0029988a9ec892fd0ecc1 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Mon, 13 Feb 2017 22:47:49 +0100 Subject: [PATCH] client-s3: Recursive List() avoids listing buckets (#2014) This fixes bug in `mc mirror myminio/ /tmp/dir` since objectDifference() can only take care of mirroring objects. --- cmd/client-s3.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmd/client-s3.go b/cmd/client-s3.go index c65c91de..a253a18e 100644 --- a/cmd/client-s3.go +++ b/cmd/client-s3.go @@ -1427,13 +1427,6 @@ func (c *s3Client) listRecursiveInRoutine(contentCh chan *clientContent) { return } for _, bucket := range buckets { - bucketURL := *c.targetURL - bucketURL.Path = c.joinPath(bucket.Name) - contentCh <- &clientContent{ - URL: bucketURL, - Type: os.ModeDir, - Time: bucket.CreationDate, - } isRecursive := true for object := range c.listObjectWrapper(bucket.Name, o, isRecursive, nil) { // Return error if we encountered glacier object and continue.