minio / mc

Unix like utilities for object store
https://min.io/download
GNU Affero General Public License v3.0
2.86k stars 548 forks source link

fix: support 'mc put --if-not-exists' #4963

Closed harshavardhana closed 4 months ago

harshavardhana commented 4 months ago

Community Contribution License

All community contributions in this pull request are licensed to the project maintainers under the terms of the Apache 2 license. By creating this pull request I represent that I have the right to license the contributions to the project maintainers under the Apache 2 license.

Description

fix: support 'mc put --if-not-exists'

Also allow 'mc get --version-id'

Motivation and Context

Just nice to have flags that have helped me to test things locally.

How to test this PR?

As mentioned in the PR

Types of changes

Checklist:

harshavardhana commented 4 months ago

if-not-exists flag is currently hidden, until we decide to take full inputs like --if-none-match

jiuker commented 4 months ago

Please fix the lint or add //nolint at that line.