Commit Graph
546 Commits
Author SHA1 Message Date
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
Krishna Srinivas e7002e097b during Put() fs returns client.PathInsufficientPermission{} for EPERM - fixes #1410 2015-11-18 00:48:44 -08:00
Krishna Srinivas b2da734ec9 fs get() should return client.PathInsufficientPermission{} in case of EPERM error 2015-11-17 19:51:57 -08:00
Harshavardhana 389020b340 mb: Print proper messages for make buckets.
Fixes #1366
2015-11-17 16:22:20 -08:00
Harshavardhana 2419ca9c4d console: Avoid printing tags for null inputs Fatalln, Errorln, Debugln.
- fixes #1362
2015-11-17 15:04:02 -08:00
Harshavardhana 9caa205f40 pipe: Print a helpful message for s3 upon invalid arguments.
Fixes #1373
2015-11-17 14:49:18 -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 36c66d7aa1 s3: Fix listing of buckets to match with or without trailing '/' 2015-11-15 21:11:10 -08:00
Harshavardhana 7856e331a1 fs: windows fixes for list handling 2015-11-15 17:50:01 -08:00
Harshavardhana cf76387dea fs: avoid nil derefence in fs listRecursive() 2015-11-15 16:21:39 -08:00
Harshavardhana 540b72426a fs: Make fs behave like s3 for prefix directories 2015-11-15 13:17:17 -08:00
Harshavardhana c68af8451b url: urlJoinPath should work on trailing slashes now. 2015-11-15 12:49:53 -08:00
Harshavardhana 47f1d2487b fs: Non-recursive send in sorted order, note will be slow for large directories 2015-11-15 11:39:32 -08:00
Anand Babu (AB) Periasamy fb39bcba80 handle non-existant color calls 2015-11-14 20:39:23 -08:00
Harshavardhana f419064871 copy: Simplify copy handling for TypeC 2015-11-13 16:10:16 -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
Harshavardhana 3790cf557a fs: Fill path variables into error properly 2015-11-13 01:28:04 -08:00
Harshavardhana 940fd7c608 error-handling: Add proper typed errors and converged code url2Content. 2015-11-13 00:24:09 -08:00