```
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.
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.
- 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'.
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)
- 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.
- 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
- 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