The code that is being modified is from 2016. Currently, it does not set
an exit code status in the following cases, all of them are returned by
the FS layer:
BrokenSymlink
TooManyLevelsSymlink
PathNotFound
PathInsufficientPermission
There is no reason to avoid setting an exit code in this case. The only
functional change of this PR is by setting an exit code
- 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.
--rewind will go back in time and select specific object versions that are
the latest at the specified time.
--versions will display all the versions
cp will just ignore if the latest version is a delete marker
ls will print delete markers with a (deleted) at the end
This fix should be backward-compatible, since strings do not need
to be initialized by default, and JSON explicitly allows it to be omitted
when empty.
With the move to go.mod, the latest humanize package is being used.
This introduces a space between size and the unit. Manually removing the space
to make it consistent with the older mc releases.
The probe package is no longer available in the Minio server
repo. This change just moves probe from the vendor directory to its
own dir under `pkg`.
This is a maintenance fix.