1
0
mirror of https://github.com/minio/mc.git synced 2025-11-10 13:42:32 +03:00
Commit Graph

23 Commits

Author SHA1 Message Date
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
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
130f4393bb cp: Copy recursive paths having the passed prefix (#3563) 2021-01-24 00:06:40 -08:00
Anis Elleuch
8f2ffbfa86 cp: Fix url check not considering version-id in some cases (#3401)
cp checks the existance of the source object in Type A and Type B, but
forgets to pass version-id as well. Fix this behavior.
2020-09-08 07:08:35 -07:00
Anis Elleuch
73d8b35425 cp: Add support of --version-id flag (#3342) 2020-08-08 20:15:34 -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
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
Bala FA
dfa1e42b25 add mc mv command (#3134)
Fixes #3077
2020-04-14 11:59:16 -07:00
Nitish Tiwari
18f81e5458 cp: Add object lock related flags (#3127)
- Adds --retention-mode,--retention-duration &
  --legal-hold flags in cp command

- Adds --bypass flag in rm command
2020-04-07 19:51:20 -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
Ashish Kumar Sinha
42898064f2 Add options to preserve filesystem attributes (#2938) 2019-10-30 00:35:25 -07:00
ebozduman
83a9d8b91d Adds missing codebase MinIO and min.io changes (#2745) 2019-04-16 22:31:54 -07:00
Anis Elleuch
87f7e65c4c Disallow copying/mirroring a folder into itself (#2553)
As unix cp command complains when you copy a directory into itself,
(such as `cp -r ~/Desktop/ ~/Desktop/sub/`), mc will follow the
same behavior with this commit.

The main reason is that copy or mirror command can be unpredictable
with the style of copy.

Example:

```
$ mc ls -r myminio/testbucket/
[2018-09-25 19:28:17 CET]     8B dir/object
[2018-09-25 19:28:40 CET]     8B object

$ mc -q cp -r myminio/testbucket/ myminio/testbucket/dir/
`myminio/testbucket/dir/object` -> `myminio/testbucket/dir/dir/object`
`myminio/testbucket/object` -> `myminio/testbucket/dir/object`

```

We can notice that `myminio/testbucket/dir/object` is both source and target
in the copy operation. The last copy operation that will occur will rule the
result of the total copy operation and `myminio/testbucket/dir/dir/object`
will have a different content in each copy operation.

Due to the unpredictability mentionned above, we will disallow copying or
mirroring a folder into itself.
2018-09-25 17:34:40 -07:00
Harshavardhana
70dcf20d74 Pass down encrypt-key handling across command validators (#2483)
Currently even if the command supports encrypted objects,
the syntax verification would fail on them in certain
cases. Since syntax validation of source/targets doesn't
use the parsed encrypt key pairs.  This PR fixes this
behavior.
2018-07-12 11:13:51 -07:00
poornas
399187c4fb ui: consistenly use "flag" instead of "option" in error messages (#2325) 2017-12-06 16:00:10 +05:30
Krishnan Parthasarathi
8d7888eb4f Improve mc-cp error message (#2208) 2017-07-15 12:11:21 -07:00
Anis Elleuch
798775775b Use ` instead of unicode single quote (#2033)
‘ is not supported in some dumb terminals, use ` instead
2017-02-25 11:08:32 -08:00
Harshavardhana
cca8c10f33 mirror: For non-s3 make sure we copy and exit properly. (#1995) 2017-02-03 15:55:44 -08:00
Harshavardhana
2ea2ec90d2 Rename mc --> cmd 2016-08-17 18:26:18 -07:00