Commit Graph
64 Commits
Author SHA1 Message Date
Harshavardhana b347137d88 diff/mirror: Handle aliases properly now. 2016-01-08 21:24:07 -08:00
Harshavardhana 11b286c149 mirror/cp: Remove aliases from being printed in json output. - fixes #1563
Additionally save expanded targetURL also part of session.
2016-01-08 18:44:39 -08:00
Anand Babu (AB) Periasamy 0bd1edfd8f new alias style and numerous cleanups. 2015-12-28 15:31:52 -08:00
Harshavardhana 8949e30524 incomplete-upload: Listing should handle incomplete upload prefixes as well.
Fixes #1514
2015-12-02 10:36: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 99cc307a62 cp/mirror: URL syntax needs to know if URL is of virtual style
Fixes #1502
2015-11-30 08:16:06 -08:00
Harshavardhana 9219e1a320 mirror/pipe: Enable mirror and pipe back now they do not work for multiple targets. 2015-11-29 14:43:11 -08:00
Harshavardhana c757cf1829 trace: Add missing traces. 2015-11-19 17:23:00 -08:00
Harshavardhana 2a9293b79f url: prefixExists should be isURLPrefixExists 2015-11-19 15:02:55 -08:00
Anand Babu (AB) Periasamy 123fde256e new recursive cp and session 2015-11-19 12:41:55 -08:00
Harshavardhana b36ae24f86 mirror: Do not verify for deprecated recursive URLs 2015-11-18 20:24:31 -08:00
Krishna Srinivas 454261962e detect invalid bucketname for mirror #1404 2015-11-17 23:47:14 -08:00
Harshavardhana 1c2f292f77 ls: listing fixes for all the bugs we found
- fixes #1356
- fixes #1355
- fixes #1358
2015-11-17 14:32:45 -08:00
Harshavardhana 2a4c7151f3 mirror: Remove checkSyntax target exists for mirror 2015-11-16 18:46:52 -08:00
Anand Babu (AB) Periasamy 814ba2cd97 Check for invalid recursive target arg 2015-11-16 17:48:45 -08:00
Krishna Srinivas 7999472cb7 diff, mirror always take directories as arguments and always does recursive operations 2015-11-15 22:22:58 -08:00
Krishna Srinivas d75690c4fd cleanup for mirror and diff on the way it calculates difference between directories, also fixes #1262 2015-11-15 16:28:04 -08:00
Anand Babu (AB) Periasamy dfbd6e6567 new help command 2015-11-14 23:37:00 -08:00
Harshavardhana 75f27fa74c url: simplify url handling in ls, cp, mirror 2015-11-13 19:38:15 -08:00
Harshavardhana f419064871 copy: Simplify copy handling for TypeC 2015-11-13 16:10:16 -08:00
Harshavardhana 940fd7c608 error-handling: Add proper typed errors and converged code url2Content. 2015-11-13 00:24:09 -08:00
Anand Babu (AB) Periasamy 3950402c89 review of cp ls mirror pipe and rm 2015-11-12 01:34:43 -08:00
Harshavardhana 5018b01a51 fs: Make fs behave like s3 - fixes #1246 2015-11-12 01:26:47 -08:00
Harshavardhana 7d3b1a6ddb mirror: Fix handling of preceding separators from source
Filesystem now never replies back directories for recursive usecase.
2015-11-11 02:01:54 -08:00
Harshavardhana d6c16ad597 cp/mirror: cleanup - now support --force flag 2015-11-10 23:47:02 -08:00
Harshavardhana 39edb01800 mirror: Fix mirror command
Add proper trimming of prefixes, to properly verify targets and its
contents.

This bug creeped in after recent URL changes.
2015-11-10 12:50:30 -08:00
Harshavardhana 6d86cbc686 copy: Fix copyURLsTypeC style of copying with or without separator.
- `mc cp pkg... test` copies all `pkg` including itself
- `mc cp pkg/... test` copies all content inside `pkg` excluding `pkg`
2015-11-08 15:24:38 -08:00
Harshavardhana b9033d1cac structure: Move client.Content to return a URL object
This change is needed to avoid extensive string manipulation
of URLs throughout the code base.

A client interface sends back data as a proper URL object,
this facilitates us to avoid unnecessary string manipulation
by making code more cleaner.
2015-11-07 22:12:52 -08:00
Harshavardhana 619bc1bf23 Add mirror and cp tests 2015-10-29 18:12:04 -07:00
Winch Ram 0ab5e27456 mirror: refactor session creation
Previously session creation was written in a way to work unsorted
source and targets content, but reality is source and targets give
contents in sorted order always.

This patch fixes session creation to use pre-sorted source and targets
content.

Signed-off-by: Winch Ram <winchram@gmail.com>
2015-10-30 06:14:07 +05:30
Harshavardhana f85e8827e1 Migrate mc package to minio-xl from minio/minio repo for probe/quick 2015-10-17 00:24:14 -07:00
Harshavardhana e03315ba44 Add cursor animate to mirror 2015-10-08 16:24:20 -07:00
Krishna Srinivas 9b45038a78 trailing slash was not enforced on sourceClnt #1158 2015-10-05 20:54:42 -07:00
Krishna Srinivas 9c23a4349c mirror - dump the sorted list of source and destinations to local disk and find the files that need to be mirrored 2015-10-03 02:02:25 -07:00
Harshavardhana 8aba0aed50 Do not enforce mirror source to have ... convention, let it be recursive always 2015-09-01 15:43:57 -07:00
Anand Babu (AB) Periasamy 91100b72ed alias support with colon requirement 2015-08-29 18:02:32 -07:00
Anand Babu (AB) Periasamy bb3c89d844 convert remaining typed errors to probe errors 2015-08-24 22:29:50 -07:00
Harshavardhana edf651ce4a Merge pull request #1043 from harshavardhana/prepare-urls
Handle errors and clearing previous outputs - json output shouldn't have colors
2015-08-24 17:18:21 -07:00
Harshavardhana 1e67db0aef Handle errors and clearing previous outputs - json output shouldn't have colors 2015-08-24 17:17:11 -07:00
Anand Babu (AB) Periasamy 831db52dcf thread-safe typed errors 2015-08-24 12:55:11 -07:00
Anand Babu (AB) Periasamy 40ff9f1033 re-vendorize probe and simplfy typed errors 2015-08-24 04:09:18 -07:00
Harshavardhana 3e5178ddb2 diff should handle type and size as well in recursive diff 2015-08-24 00:02:50 -07:00
Harshavardhana 492340b3d8 Recursively progress along with errors if possible 2015-08-23 02:30:47 -07:00
Anand Babu (AB) Periasamy f2899ef228 replaced panic with probe 2015-08-22 23:26:56 -07:00
Anand Babu (AB) Periasamy 099b4478d6 replaced panic with probe 2015-08-22 23:25:11 -07:00
Anand Babu (AB) Periasamy d8bb1e9fd6 replaced panic with probe 2015-08-22 23:22:17 -07:00
Anand Babu (AB) Periasamy 0de688948a error messages and tiny bug fixes 2015-08-22 19:47:11 -07:00
Harshavardhana a0e66ce640 Migrate to golang1.5 with new GO15VENDOREXPERIMENT enabled 2015-08-22 19:04:17 -07:00
Harshavardhana dfd1b29d5f Improve error messages 2015-08-20 17:22:38 -07:00
Harshavardhana fa0c9e38bb Add error messages to fatalIf and errorIf 2015-08-19 17:11:34 -07:00