Commit Graph
563 Commits
Author SHA1 Message Date
Ashish Kumar Sinha 42898064f2 Add options to preserve filesystem attributes (#2938) 2019-10-30 00:35:25 -07:00
Klaus Post aa4a4774da Fix Windows config path (#2898)
Remove '.exe' (case insensitive) from executable name for consistent config folder.

Potentially breaking: If people (for whatever reason) used 'mc.exe', this will potentially break their setup.
2019-10-12 00:07:10 +05:30
Harshavardhana e978c71b7c Add staticcheck based builds (#2788)
Additionally this PR also supports
multi-platform builds to avoid cross
platform build issues.
2019-06-03 11:22:31 -07:00
ebozduman 83a9d8b91d Adds missing codebase MinIO and min.io changes (#2745) 2019-04-16 22:31:54 -07:00
Sidhartha Mani cfb25fe81b mc admin info changes (#2712) 2019-03-14 18:20:29 +05:30
Ashish Kumar Sinha 1761b338f9 OlderThan & NewerThan configured for Days, Hours and Minutes (#2614)
Previously OlderThan and NewerThan was configured for day
which has been changed to Days, Hours and minutes.

Also, changed the `flag` in `find` command to be `newer-than` and `older-than` to be consistent with other commands.
2019-03-03 20:18:34 -08:00
Sidhartha Mani c75abbb3f9 use colorjson for all other mc outputs (#2683)
- Update to MarshalIndent instead of Marshal
- Allow unmarshalling
2019-02-28 14:33:13 -08:00
Sidhartha Mani 7bc792e745 Add json pretty print (#2661)
Enable jq style color output in github.com/minio/mc/pkg/json
- Drop in replacement of encoding/json
- Bold struct keys in blue
- Strings in green
- Numbers in default color
- Indenting and spacing matches exact jq specifications

Additionally, color coding needs '\x1b[...m' to be whitelisted in encoding/json's parser
2019-02-05 11:52:33 +05:30
Harshavardhana 55f06077e5 Fix heal admin API to honor json/quiet flags correctly (#2370)
Update the madmin updated package as well

Fixes #2369
Fixes #2368
Fixes #2367
2018-01-27 23:19:52 +05:30
Aditya Manthramurthy 793cda2ca0 New Admin API client-side implementation (#2350) 2018-01-23 12:32:58 -08:00
Aditya Manthramurthy ca96cfc6e6 Move pkg/probe from vendor dir to package dir (#2236)
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.
2017-08-14 11:13:38 -07:00
Harshavardhana 5c135d25d6 mc: Vendorize minio-go this brings in streaming support. (#2203)
This PR brings following changes

- Brings streaming support for mc uploads.
- Brings support for copying objects upto 5TiB
  as a consequence of ComposeObject implementation
  in minio-go.
2017-07-06 20:41:34 +01:00
Harshavardhana 939dad5900 Move the notify events to new package - rjeczalik/notify. (#1807)
* Move the notify events to new package - rjeczalik/notify.

* improving handling of notify events on linux specific (#3) @nl5887
2016-08-24 02:11:55 -07:00
Anis Elleuch ba088b8fc0 Move ioutils pkg from minio to mc and fix a sorting list bug (#1688)
* Move ioutils pkg from minio to mc

* Fix an important bug in sorting fs list in recursive mode
2016-04-17 12:20:48 -07:00
Harshavardhana 6f3cd87993 config: Config folder option should be honored.
The fix is to load config factory once again, to avoid looking for stale
scoped global variables. For example ``mcCustomConfigDir``

Fixes #1611
2016-02-17 15:59:55 -08:00
Harshavardhana fe5b2f97e3 fs/s3: move the code for fs and s3 out to the top-level.
Now the interface moves to the top level - fixes #1604
2016-02-16 11:27:42 -08:00
Super-User 5219fd59e8 porting: mc now properly works on solaris.
Fixes #1603
2016-02-15 15:03:40 -08:00
Harshavardhana f63de3cc30 mc: update to new changes in minio-go. 2016-02-07 18:03:32 -08:00
Harshavardhana 1dea194699 minio-go: Vendorize with new changes. 2016-02-05 23:10:09 -08:00
Harshavardhana fc668edadf urlAlias: Handle forward slashes on windows.
On windows
```
> mc ls s3/ --> Fails
```

Since most of our examples talk about '/', we should handle
this cleanly for windows.
2016-01-27 14:34:12 -08:00
Anand Babu (AB) Periasamy 01b0928989 Merge pull request #1588 from harshavardhana/handle-paths
cp/mirror: Handle path constructions properly across operating systems.
2016-01-26 18:27:13 -08:00
Harshavardhana 0a4fce57cf cp/mirror: Handle path constructions properly across operating systems.
```
mc cp -r localhost\testbucket\bin C:\destination
```

Following syntax is supposed to copy only 'bin' inside C:\destination.
Due to url construction issues this leads to 'testbucket' instead being
copied as the top level directory.

With this fix the url construction becomes more cross platform friendly.
2016-01-26 18:21:34 -08:00
Harshavardhana 3b5dcd478a ls: Make recursive and non-recursive behave the same way
Outputs for recursive today

```
$ mc ls -r /tmp/value/
[2016-01-25 12:27:01 PST]    52B test.go
[2016-01-26 11:36:22 PST] 4.2KiB test.txt
[2016-01-26 11:45:22 PST]   102B test/
[2016-01-26 11:45:22 PST] 4.2KiB test/README.md
```

and Outputs for non recursive today differ lexically.

```
$ mc ls  /tmp/value/
[2016-01-26 11:45:22 PST]   102B test/
[2016-01-25 12:27:01 PST]    52B test.go
[2016-01-26 11:36:22 PST] 4.2KiB test.txt
```

To fix this issue we need to capture the ending '/' as
well part of the names while sorting the output. This
patch addresses this problem.
2016-01-26 18:11:24 -08:00
Harshavardhana 9a40a67410 mc: Vendorize to new changes.
- Fix 0byte file uploads to be not uploaded as multipart.
- Fix bucket requests to have a '/' at the end
  for path style - fixes #1579
- Handle progress bar, if pb.Total is '0'.
2016-01-25 01:00:47 -08:00
Harshavardhana a769ce6439 mc: Vendorize to new API changes.
This vendorization uses the new set of API changes which
we are brought in.

With this new change Bucket regions are handled transparently
without any region lookup or local map. This makes overall code
seamless and easy to use.

Fixes - #1541 (cp corruption while uploading large files to s3)
Fixes - #1542 (cp checkCopySyntax failed)
Fixes - #1537 (regions will be handled seamelessly now for all buckets)
Fixes - #1538 (fixes access control policy for google cloud storage)
Fixes - #1547 (session resume completes without copying all the files)
Fixes - #1559 (poor network connectivity, causes timing out)
2016-01-23 23:53:27 -08:00
Anis Elleuch 3b35f44eba Fix ls error msg 2016-01-09 15:46:52 +01:00
Anand Babu (AB) Periasamy f7cdbc2583 cache and re-use minio S3 client 2015-12-31 17:02:08 -08:00
Anand Babu (AB) Periasamy 0bd1edfd8f new alias style and numerous cleanups. 2015-12-28 15:31:52 -08:00
Harshavardhana 3782c4abe0 fs: Make sure to negate the seeked offset if size is not negative. 2015-12-05 17:52:45 -08:00
Harshavardhana 36e7e42637 contentType: use contentDB package from server. 2015-12-04 16:28:26 -08:00
Harshavardhana 3b95a39e3a fs: More changes related to symlink handling. 2015-11-30 16:13:27 -08:00
Harshavardhana 93e26e9032 fs: Simplify windows symlink lstat handling. 2015-11-30 15:28:56 -08:00
Harshavardhana 3b7d63bbf3 region: Resolve region properly, if fails return the error.
Fixes #1503
2015-11-30 12:25:45 -08:00
Harshavardhana 1664551119 cp: Working resumable cp fixes #1505 2015-11-30 10:57:54 -08:00
Anand Babu (AB) Periasamy aea88d3756 handle stdin pipe properly 2015-11-29 22:29:17 -08:00
Harshavardhana 4485529911 putTarget: Reintroduce size this time pipe can upload upto 5TB 2015-11-28 22:17:22 -08:00
Harshavardhana 1badfc8a04 :mc: resumable downloads and support incomplete files on file system. 2015-11-28 18:00:53 -08:00
Harshavardhana f94399b01c console: Print in Debug when DebugPrint set to true. 2015-11-25 01:22:17 -08:00
Harshavardhana 841c65c867 share: Move to --recursive instead of --starts-with for consistency.
- if URL ends with "/" and no --recursive option exit properly.
- if recursive is given no matter what key is specified it is regarded
  as prefix.
- if no recursive option and no "/" suffix is provided is treated as
  exact object name.
2015-11-24 21:22:53 -08:00
Harshavardhana aa3007bcd0 share/download: add --starts-with flag and remove '...' we don't have that anymore.
- Fixes bug when prefix is available and should be prepended to the key.
- Fixes another bug to avoid doing URL stat for upload, its not needed.

Fixes #1478
2015-11-23 12:33:08 -08:00
Harshavardhana fd1cde749a mc: Fix setGlobalContext across all commands.
- Always set globals from context before validating input arguments.
- Add missing os.Exit(1) from console.Fatal{f,ln} which was
  accidentally removed from previous commits.

Fixes #1472
2015-11-22 00:33:35 -08:00
Harshavardhana 7e5f4776ca minio/minio-go: re-vendorize with new changes
Fixes #1470
2015-11-21 19:22:40 -08:00
Harshavardhana 3f52c951e7 testing: Remove all the console IsExited/IsError testing. 2015-11-21 17:55:42 -08:00
Anand Babu (AB) Periasamy 052f73f348 restructure globals and some bug fixes related to globals 2015-11-21 12:43:21 -08:00
Harshavardhana 0671f246ad ls: Add missing content Time from listing buckets in recursive operation
Fixes #1457
2015-11-20 15:47:05 -08:00
Harshavardhana 6e56f06bd3 ls: Fix a windows issue. 2015-11-19 20:29:33 -08:00
Krishna Srinivas bbf0f7687c check bucketname validity 2015-11-19 14:42:32 -08:00
Krishna Srinivas 1778d6a448 mc ls fails when there is a broken symlink - fixes #1442 2015-11-19 12:09:20 -08:00
Krishna Srinivas b03deb9d3c s3.go should return client.PathInsufficientPermission{} for access denied errors fixes #1421 2015-11-18 18:18:06 -08:00
Harshavardhana 83d2accd5b fs/s3: Simplify fs and further add more documentation. 2015-11-18 18:11:18 -08:00