Many listings would stop after the first version had been processed on Windows, since
For example, `mytls/testbucket/trace.json` != `mytls\testbucket\trace.json` would cause `mc undo` to only see one version since this would fail.
Use `getStandardizedURL` for both sides of these compares.
- terminal messaging for 'mc rm --dry-run' was completely
wrong, it was using `fmt.Println` which shouldn't be done.
- mc support perf - printing was using a mix of color.New()
and console.Infoln() (use one)
- mc support profile - printing was using a mix of color.New()
and console.Info() (use one)
- mc support inspect - printing was using a mix of color.New()
and consoleInfo() (use one)
Do no miss sending object/version to contentCh when there is deletion
result available.
This commit fixes issues seen when some objects/versions are not deleted
when --no-current is passed.
Co-authored-by: Anis Elleuch <anis@min.io>
Earlier commit #8eae2e3bbfafe952ecb33904c0d9073871a32169 reverted
this behavior, bringing it back
Co-authored-by: Poorna Krishnamoorthy <poorna@minio.io>
This PR also changes the interpretation of --non-current flag to delete
all non current versions that qualify irrespective of whether top level
version is a delete marker.
Co-authored-by: Poorna Krishnamoorthy <poorna@minio.io>
- fixes errant top level directory creation, regression introduced in #3313
- fixes `mc ls -r` regression introduced in #3476
- fixes other bugs such as `mc mirror` would perpetually hang if the
destination bucket doesn't exist, create and proceed instead.
- removes DirOpt style implementations for List, ListIncompleteUploads
these are not useful anymore.
A code refactor made rm to invoke HEAD request instead of LIST to stat
object to remove, and this introduced a problem removing a delete-marker
since HEAD of a delete-marker returns 405 Method Not Allowed
HEAD object returns 404 with a delete-marker header when the object is a
delete-marker in a versioning bucket. This PR will show a better error
message in that case.
Use url2Stat() and ignore 400 bad request error.