voldikss
3cfa8642fd
fix: rm command with --newer-than not working ( #4944 )
2024-06-01 08:03:35 -07:00
Aditya Manthramurthy
d4b7b00d73
Bump up minio/pkg to v3 ( #4940 )
2024-05-23 00:59:47 -07:00
Sveinn
fe58afcd39
Large MC Update (new encryption flags, functional test suite, removal of session code, minor cleanup, vuln. updates ) ( #4882 )
2024-04-15 08:10:25 -07:00
Harshavardhana
1ec55a5178
avoid stat and listing with --purge ( #4869 )
2024-03-08 22:43:06 -08:00
jiuker
1e69c2aadd
feat: add put action ( #4839 )
2024-02-19 22:36:31 -08:00
Sveinn
87d6cd2d4f
Validation optimization - reduce HEAD calls during cp and mv operations ( #4710 )
2023-10-12 11:30:11 -07:00
Aditya Manthramurthy
e2056fb057
Update to minio/pkg v2 ( #4674 )
2023-09-02 14:28:03 -07:00
Harshavardhana
216aae32b9
fix: with --purge flag ignore path validation errors ( #4636 )
2023-07-18 14:05:38 -07:00
Harshavardhana
355150151f
allow purge to happen on quorum lost objects ( #4629 )
2023-07-13 00:11:43 -07:00
Harshavardhana
0ed2956757
improve user messaging in 'support perf' and 'mc rm --dry-run' ( #4617 )
...
- 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)
2023-06-26 09:20:51 -07:00
Klaus Post
2ff87d64dc
Fix dry run message crash ( #4546 )
2023-04-16 23:04:51 -07:00
Anis Eleuch
07fb372398
rm: --dry-run with --versions to print versions modtime ( #4495 )
2023-03-18 16:39:26 -07:00
Poorna
023e0cacc5
mc rm: disallow --purge with flags other than --force ( #4467 )
2023-02-07 03:42:57 -08:00
Harshavardhana
76d49771d9
rename force-delete to purge hidden flag ( #4387 )
2022-12-06 08:45:49 -08:00
adfost
fd7142e223
update license headers to 2022 ( #4360 )
2022-11-14 18:38:39 -08:00
Harshavardhana
cf7e0ae050
generalize input for ctx.Command.Name ( #4338 )
2022-11-01 08:04:26 -07:00
Harshavardhana
27322636ae
feat: Introduce 'mc batch' command ( #4225 )
2022-10-09 14:10:59 -07:00
Anis Elleuch
f85086b153
Use a pager for help output ( #4245 )
2022-09-28 11:28:02 -07:00
Harshavardhana
6cee296d04
rename Remove -> Removed in 'mc rm' ( #4187 )
2022-08-05 21:54:56 -07:00
dorman
37a83f23f0
change rm color on the terminal ( #4171 )
...
fixes #4165
2022-07-29 12:17:16 -07:00
dorman
11d3bace31
rm: add fake message with --fake ( #4170 )
...
fixes #4166
2022-07-29 11:03:24 -07:00
Harshavardhana
50669cafa6
ignore remove errors for WORM protected objects ( #4111 )
...
this error is similar to insufficient permission
on local folders, we can proceed to remove whatever
objects we can.
2022-06-10 15:12:16 -07:00
Harshavardhana
6e2ed46cb4
add hidden force-delete option ( #4097 )
2022-05-30 12:51:43 -07:00
Nick Doornekamp
0530f5a471
Update documentation for --older/newer-than flags ( #4039 )
2022-04-16 08:10:14 -07:00
Anis Elleuch
3f0953f9f4
Do not rely on contentCh to print removal messages ( #4041 )
...
Removal is an asynchrounous operation. We should not use structures that
we send to the removal goroutine and use them in removal messages.
2022-04-07 11:52:55 -07:00
Anis Elleuch and Anis Elleuch
033969a0bf
rm: Fix sending an object/version to removal with --no-current flag ( #4038 )
...
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 >
2022-04-02 16:14:23 -07:00
Poorna and Poorna Krishnamoorthy
5a3ad93ab9
`mc rm --non-current should remove top level deletemarker ( #4037 )
...
Earlier commit #8eae2e3bbfafe952ecb33904c0d9073871a32169 reverted
this behavior, bringing it back
Co-authored-by: Poorna Krishnamoorthy <poorna@minio.io >
2022-04-01 16:39:16 -07:00
Poorna and Poorna Krishnamoorthy
dc2a851b54
Make sure to print mc rm dry run message ( #4033 )
...
Co-authored-by: Poorna Krishnamoorthy <poorna@minio.io >
2022-04-01 01:19:02 -07:00
Poorna and Poorna Krishnamoorthy
8eae2e3bbf
Fix mc rm --non-current to use --older-than filter if specified ( #4030 )
...
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 >
2022-03-30 16:21:42 -07:00
Harshavardhana
c7a8815414
fix: rm should reject --non-current with --recursive ( #3987 )
2022-02-18 02:59:34 -08:00
Klaus Post
2f42260f98
Add remote zip support to mc ls/cp/cat ( #3977 )
...
--zip flag is hidden for now
2022-02-15 03:09:39 -08:00
Harshavardhana
a59f9e4d30
add gofumpt support, automated cleanup ( #3911 )
2022-01-06 10:55:40 -08:00
Harshavardhana
8b3935e24d
error out if --non-current is used without --versions ( #3910 )
2022-01-06 02:05:21 -08:00
Harshavardhana
8132c286e4
rm: fix printing when deleting content
2022-01-05 00:28:46 -08:00
Harshavardhana
f06a0987a3
rm: print proper paths instead of just objectnames for S3 endpoints
2021-12-28 18:37:48 -08:00
Harshavardhana
e08ded6d28
display when delete markers are created ( #3904 )
2021-12-28 17:48:54 -08:00
Harshavardhana
ae66e893c7
with --force flag no need for exit code ( #3868 )
...
fixes #3673
2021-11-15 10:00:12 -08:00
Ashish Kumar Sinha
1f2429c336
validation for namespace removal ( #3783 )
2021-09-15 11:34:41 -07:00
Harshavardhana
43b03a8532
support 'mc rm --non-current' to delete non-current objects ( #3768 )
2021-08-10 18:29:22 -07:00
Harshavardhana
91efd0c066
migrate mc to minio/pkg ( #3731 )
...
remove all dependency for minio/minio
2021-05-29 09:30:33 -07:00
Harshavardhana
1402987ccb
change license to AGPLv3
2021-05-11 17:45:08 -07:00
Anis Elleuch
0053d58648
rm: Better messages when buckets are empty ( #3606 )
2021-02-16 13:53:04 -08:00
Anis Elleuch
d4fbfb5975
Show better looking help when a wrong flag is passed ( #3461 )
2020-12-02 22:19:26 -08:00
Harshavardhana
3792e9f906
multiple bug fixes for mirror, ls, rm ( #3491 )
...
- 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.
2020-11-15 13:24:00 -08:00
Cesar N
7f2df96e48
Change ListOptions' fields to public ( #3433 )
2020-10-01 09:50:56 -07:00
Anis Elleuch
2568f9e7bf
rm: Remove a delete marker ( #3422 )
...
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
2020-09-30 15:13:19 -07:00
Anis Elleuch
9ff6c146b4
rm: Show deleted error msg when delete marker is found ( #3407 )
...
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.
2020-09-21 11:42:31 -07:00
Anis Elleuch
af6cff00a5
retention: Refactor and add support of versioning ( #3347 )
2020-09-06 10:33:15 -07:00
Anis Elleuch
e10c597425
stat: Add support of --rewind, --versions and --version-id ( #3350 )
2020-08-26 15:04:52 -07:00
Harshavardhana
6fc39cdf8e
imply rewind correctly what it does ( #3373 )
2020-08-26 14:51:37 -07:00