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
Harshavardhana
f01dc5b60c
rm: Fix alias URL handling in rm.
2016-01-08 20:51:28 -08:00
Anand Babu (AB) Periasamy
0bd1edfd8f
new alias style and numerous cleanups.
2015-12-28 15:31:52 -08:00
Anand Babu (AB) Periasamy
8fc138f3a0
organize global flags after cmd flag
2015-11-24 16:59:46 -08:00
Harshavardhana
67809d105b
rm: For incomplete uploads do not issue a stat request.
2015-11-24 14:13:43 -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
Anand Babu (AB) Periasamy
558c20e1e3
set globals from context from each command main
2015-11-21 18:26:58 -08:00
Anand Babu (AB) Periasamy
269ac7b105
global flags are replaced with command speific flags, but still retain global behavior
2015-11-21 14:20:00 -08:00
Harshavardhana
de9380dd9d
doc: Improve examples.
2015-11-19 19:24:25 -08:00
Harshavardhana
446cae9820
rm: Fix flags and doc
2015-11-19 11:26:28 -08:00
Krishna Srinivas
cecc409a71
Do a stat on files for non-recursive rm before removing to detect non-existing files
2015-11-18 22:26:07 -08:00
Harshavardhana
d5dd4fb5bd
json: JSON messages now have proper status field for all messages
...
Fixes - #1369
2015-11-18 00:24:32 -08:00
Krishna Srinivas
054aaadde8
rm on non-empty dir was wrongly printing that it was removed - fixes #1371
2015-11-18 00:09:25 -08:00
Anand Babu (AB) Periasamy
5f01f6d98c
fake flag for remove
2015-11-17 23:55:27 -08:00
Anand Babu (AB) Periasamy
75409ca9b5
rm recursive flag and remove per folder
2015-11-17 23:34:58 -08:00
Harshavardhana
1a6c7ffd95
rm: Fix wasn't proper in previous commit fix it
2015-11-17 17:39:36 -08:00
Harshavardhana
6b4d976755
rm: Do not try to remove the '.'
2015-11-17 17:13:02 -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
Anand Babu (AB) Periasamy
e1763a057b
show help flag for mc
2015-11-16 12:52:54 -08:00
Harshavardhana
7831917901
help: Re-write help style now each command has --help
2015-11-16 02:21:44 -08:00
Anand Babu (AB) Periasamy
39f7441790
fixes related to help handling
2015-11-15 20:05:58 -08:00
Anand Babu (AB) Periasamy
16faf7ed3e
version command rewrite
2015-11-14 23:48:29 -08:00
Anand Babu (AB) Periasamy
dfbd6e6567
new help command
2015-11-14 23:37:00 -08:00
Krishna Srinivas
eb78783c3f
Fix for prefix based rm
...
"mc rm asd..." where asd is a prefix, not a directory
2015-11-13 14:35:45 -08:00
Anand Babu (AB) Periasamy
3950402c89
review of cp ls mirror pipe and rm
2015-11-12 01:34:43 -08:00
Anand Babu (AB) Periasamy
ed0dbb835b
simplify ls command
2015-11-11 17:45:20 -08:00
Anand Babu (AB) Periasamy
970927cc6b
simplify setting console theme
2015-11-10 16:45:32 -08:00
Harshavardhana
6a8224b4ab
cleanup: Cleanup across code base.
...
- improve on code comments, needs more work this is a first cut.
- improve on naming conventions and simplification as and when
necessary.
2015-11-08 13:22:32 -08:00
Anand Babu (AB) Periasamy
3d847915c7
simplify rm code
2015-11-08 03:32:31 -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
Anand Babu (AB) Periasamy
334e864eea
Prints cleanup
2015-11-07 16:41:42 -08:00
Harshavardhana
540b76fb9c
Update docs for share, session and config
2015-11-04 20:14:01 -08:00
Krishna Srinivas
d9fa12d862
"rm" progress output
2015-10-28 20:52:10 -07:00
Harshavardhana
d85973042c
Fix rm segfault - fail on catastrophic error
...
fixes #1216
2015-10-25 14:26:49 -07:00
Harshavardhana
23e1d34d64
Construct url properly, use filepath.Join only for paths
...
fixes #1215
2015-10-25 13:38:25 -07:00
Harshavardhana
f94de478c3
Merge RemoveIncompleteUpload() into Remove
2015-10-22 15:18:11 -07:00
Harshavardhana
795a8edf64
Simplify client interface
2015-10-22 10:47:24 -07:00
Krishna Srinivas
b240c7c88a
Support for "rm" of localdir/prefix...
2015-10-21 18:46:19 -07:00
Harshavardhana
2f46510d26
Improve upon the argument verification - use the existing primitives from cli package
2015-10-20 20:47:08 -07:00