1
0
mirror of https://github.com/minio/mc.git synced 2025-11-25 08:23:07 +03:00
Commit Graph

34 Commits

Author SHA1 Message Date
Harshavardhana
8876275c07 list versions including DEL marker when figuring out Stat() (#4951)
this is needed to avoid an inconsistent behavior when an
object exists v/s DEL marker or FreeVersion exists.
2024-06-19 22:57:53 -07:00
Aditya Manthramurthy
d4b7b00d73 Bump up minio/pkg to v3 (#4940) 2024-05-23 00:59:47 -07:00
jiuker
1e69c2aadd feat: add put action (#4839) 2024-02-19 22:36:31 -08:00
jiuker
f88eb55911 fix: tree traversal issue with empty folders (#4810)
fixes #4794
2023-12-29 09:16:55 -08:00
Aditya Manthramurthy
e2056fb057 Update to minio/pkg v2 (#4674) 2023-09-02 14:28:03 -07:00
Harshavardhana
252421354c update functional tests for admin_users with 'policy commands' (#4508) 2023-03-19 20:49:16 -07:00
adfost
fd7142e223 update license headers to 2022 (#4360) 2022-11-14 18:38:39 -08:00
Anis Elleuch
624e3c1606 Remove isURLPrefixExists() call (#4173)
isURLPrefixExists() is used after url2Stat() function to check if the
given aliased URL corresponds to an existing prefix in the server. However,
 url2Stat() is already doing that and returns valid information for
those prefixes.

Removing isURLPrefixExists() all together.
2022-07-29 10:43:20 -07: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
Villena Guillaume
9914c8187e Allow storageclass to be specified on mc ls (#3915) 2022-01-28 14:42:21 -08:00
Harshavardhana
a59f9e4d30 add gofumpt support, automated cleanup (#3911) 2022-01-06 10:55:40 -08: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
Chengyou Liu
74fc02e5eb Add --summarize for ls (#3517)
Co-authored-by: Harshavardhana <harsha@minio.io>
2020-12-09 15:26:29 -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
Harshavardhana
470ae1ee5f allow empty buckets listed with mc ls -r (#3476) 2020-11-02 15:49:07 -08:00
Cesar N
7f2df96e48 Change ListOptions' fields to public (#3433) 2020-10-01 09:50:56 -07:00
Harshavardhana
41d337e95c fix: messages for version-id and rewind (#3380) 2020-08-26 15:48:47 -07:00
Anis Elleuch
cd41dbc0a2 tree: Add --rewind flag (#3359) 2020-08-14 22:11:38 -07:00
Anis Elleuch
442facedd1 Implement rewind flag in ls and cp commands (#3304)
--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
2020-07-23 11:18:38 -07:00
Harshavardhana
0b0acc611f Revert "cli: Load global flags in initBeforeRunningCmd (#3283)" (#3302)
This reverts commit 712ff33319.
2020-07-16 11:10:35 -07:00
Anis Elleuch
712ff33319 cli: Load global flags in initBeforeRunningCmd (#3283)
app.Before receives a cli.Context but without flags parsed. There is no
point calling ctx.Bool() or ctx.IsSet() at that stage.

However, flags are parsed in commands, so minio initialization and
setting global variables (globalJSON, globalQuiet, etc..) can be moved
to the Before function of all commands.

Avoid setting command.Before for non leaf commands, otherwise Before
function will be called multiples times until it reaches the leaf
command.
2020-07-01 17:28:43 -07:00
ebozduman
d5b6931a1e Apply global context for all apis (#3240) 2020-06-16 16:55:31 -07:00
Anis Elleuch
59187f2ef7 s3: Use head API before listing in client.Stat() (#3156)
Stat() is supposed to return valid information for existing
objects and existing prefixes as well.

The current mechanism issues a listing request and searches
for the object or prefix in the returned list, but this could take
time if there are a lot of entries under a parent prefix.

The new commit changes the internal behavior but not the
functional output. It issues a HEAD request first, if there
is no object then assumes it is a prefix and does listing
in order to find it.
2020-04-16 16:23:37 -07:00
Harshavardhana
8cae137525 fix all the build errors 2020-04-03 22:22:20 -07:00
Harshavardhana
9663319e9e Update mc dependencies to recent dep change on MinIO (#3026) 2019-12-31 11:27:59 -08:00
Harshavardhana
6cfbc809cf Add mirror command to compare metadata and copy (#2965)
mirror now uses the newly introduced
ListObjectsV2WithMetadata API in minio-go
2019-11-21 22:25:46 -08:00
Ashish Kumar Sinha
42898064f2 Add options to preserve filesystem attributes (#2938) 2019-10-30 00:35:25 -07:00
ebozduman
a9c606f119 Customize service help for Windows/Linux users (#2908) 2019-09-28 08:33:28 +05:30
Praveen raj Mani
e541715e42 Fix error message in mc tree (#2855) 2019-08-13 13:35:47 -07:00
Harshavardhana
c25461640b Fix tree docs and error handling (#2833)
Fixes #2832
2019-07-22 13:02:49 -07:00
Harshavardhana
c2fcfe6512 Make sure to error out if depth is -1 (#2828)
Current code silently converts -1 to 0, which
is not needed and we should fail instead.
2019-07-18 14:40:51 +01:00
Praveen raj Mani
bdcb9dcb2f Add tree listing (#2804) 2019-07-17 22:23:02 -07:00