Files
mc/cmd
Anis Elleuch 3391f39521 mirror: Sort bucket names with slash for site wide scenarios (#3894)
mc diff/mirror command fails to compare source & target when doing
an S3 site-wide listing.

The reason is that client-s3.List(), when doing a site-wide listing,
lists buckets first and list objects inside each bucket with the order
returned by S3 ListBuckets API.

However this can produce a non properly sorted listing output,
e.g.:

```
$ mc ls -r myminio/
[2021-12-14 15:58:27 CET] 227KiB bucketname/object1
[2021-12-14 15:58:24 CET] 227KiB bucketname-0/object2
```

Though it should be
```
$ mc ls -r myminio/
[2021-12-14 15:58:24 CET] 227KiB bucketname-0/object2
[2021-12-14 15:58:27 CET] 227KiB bucketname/object1
```

because '/' has a higher ASCII value than '-'

This commit fixes the behavior by always sorting bucket names with
a fake trailing slash when doing a site-wide recursive listing.
2021-12-28 17:49:45 -08:00
..
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:46:41 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-09-28 09:19:52 -07:00
2021-05-11 17:45:08 -07:00
2021-09-28 09:19:52 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-09-28 09:19:52 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-12-07 15:06:06 -08:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-09-24 09:32:39 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-06-11 14:40:16 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00
2021-09-28 09:19:52 -07:00
2021-09-28 09:19:52 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-11 17:45:08 -07:00
2021-05-29 09:30:33 -07:00
2021-05-11 17:45:08 -07:00