Anis Elleuch
94f4c4cd2d
Avoid removing session v7 json files by migrateSessionV5ToV6 ( #2 )
2016-04-18 17:47:39 -07:00
Harshavardhana
9e94120d68
mirror: Implement '--remove' feature.
...
Fixes #1628
2016-04-17 12:21:43 -07:00
Anis Elleuch
98ac1817cb
Rewrite diff code ( #1681 )
2016-04-17 01:18:30 -07:00
Harshavardhana
619b1b4e2a
url: There is no reason to split '?' delimiter. ( #1679 )
...
The reasoning is that we are not providing query
params through 'mc' and we don't need to handle it
specially. Since all paths are absolute with only
delimiter of '/' all other characters should be allowed
including '?'.
For this same reason now newURL is called newClientURL.
Fixes #1677
2016-04-11 18:20:56 -07:00
Harshavardhana
1e1516c968
stat: Print proper error messages when bucket name is empty.
...
Handle cases for situations for all commands where target bucket
name is not specified, indicate proper errors in this situation.
Fixes #1629
2016-03-30 18:46:20 -07:00
Harshavardhana
c022107515
diff: Implement url difference with time.
...
Also make a 'differType' - fixes #1632
2016-03-09 22:11:07 -08:00
Harshavardhana
373b593c3e
Merge pull request #1630 from harshavardhana/fake-option
...
mirror: Implement --fake option.
2016-03-05 13:20:36 -08:00
Harshavardhana
bd1086c244
diff/mirror: Factory function now refactored to reply function only idiomatic style.
...
Refactor the current code into more idiomatic style and use
consistent variable names.
ref #1628
2016-03-04 19:52:32 -08:00
Harshavardhana
69c8bf7959
mirror: Implement --fake option.
...
This option helps users verify what operation 'mirror'
is going to perform without it. It also allows for scripts
to validate what files will be copied etc.
- #1628
2016-03-04 19:14:56 -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
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