Harshavardhana
2d431dacbc
ls/cp/mirror: Ignore objects with StorageClass GLACIER. ( #1742 )
...
Fixes #1741
2016-06-23 00:28:17 -07:00
Krishnan Parthasarathi
9766ff1805
Append trailing slash to targetURL only if absent ( #1731 )
2016-05-28 13:16:57 -07:00
Krishnan Parthasarathi
ba2e8149c8
Ignore BucketEmpty error for top-level listing ( #1727 )
...
* Ignore BucketEmpty error for top-level listing
This is relevant in the case of non-fs backend like s3, play etc.
* Used ToGoError() to get Error interface from *probe.Error
2016-05-22 23:04:26 -07:00
Anis Elleuch
8b074767db
ls: list objects inside a directory when this latter is passed without a trailing separator ( #1724 )
2016-05-20 16:43:06 -07:00
Harshavardhana
783d29794a
ls: ls should ignore error BucketNameEmpty.
...
This is a valid case of 'ls', without this change.
```
$ mc ls localhost
mc: <ERROR> Unable to stat ‘localhost’. Bucket name cannot be empty.
```
What we need to ideally see is if server is not available is
```
$ mc ls localhost
mc: <ERROR> Unable to list folder. Get http://localhost:9000/ : dial tcp [::1]:9000: getsockopt: connection refused
```
2016-04-21 17:10:16 -07: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
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
Anand Babu (AB) Periasamy
8fc138f3a0
organize global flags after cmd flag
2015-11-24 16:59:46 -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
Harshavardhana
cc0cde16c6
ls: Fix ls output - fixes #1466
2015-11-21 16:57:44 -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
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
Harshavardhana
5f9055e7fd
ls: Non-existant file or prefix throw an error
2015-11-17 17:58:58 -08:00
Anand Babu (AB) Periasamy
4ee7cb92e0
use recursive flag for ls
2015-11-17 15:55:43 -08:00
Harshavardhana
4bd5f3063a
args: Multiple args shouldn't fail in bettween, should continue and print errors if any
...
Fixes #1365
2015-11-17 10:48:31 -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
dfbd6e6567
new help command
2015-11-14 23:37:00 -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
881a8a1366
cat code review
2015-11-12 00:12:11 -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
08c90a2c03
doc: Add google cloud storage
2015-11-09 23:46:46 -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
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
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
8de841cd69
list: Move incomplete as last argument.
...
implement args.Head() to handle this case smoothly.
2015-11-06 16:17:15 -08:00
Harshavardhana
1eb171544f
Implement mc ls incomplete s3/bucketname
2015-10-19 22:28:34 -07:00
Anand Babu (AB) Periasamy
636f243dcc
target2client and source2client methods are not necessary
2015-10-11 03:07:47 -07:00
Harshavardhana
6d95872ad8
Add new --colors option for choosing different coloring styles for console printing
...
Each command implements and interprets the following coloring styles
- ``dark`` - default coloring style picks up palette colors Cyan, Red, Blue, White etc
- ``light`` - lighter chooses white colored console printing.
- ``nocolor`` - nocolor is for console printing without any colors.
All coloring internally use ASCII color schemes, portable across all known OS.
2015-10-07 17:08:42 -07:00
Harshavardhana
dbe53325b0
Add SetCustomPalette rather than theme
2015-10-07 12:54:35 -07:00
Harshavardhana
8164410b4e
Change the 'ls' output behavior
...
- do not add odd prefixes like GNU 'ls' since it clobbers users view
- add minio specific to differentiate the users view of 'ls' output
Rather than having output in the following manner
```
$ mc ls pkg vendor
pkg:
client console
vendor:
github.com
```
It should be
```
$ mc ls pkg vendor
pkg/client
pkg/console
vendor/github.com
```
This way the differentiation and the API is not disturbed.
This patch fixes this issue.
2015-09-16 03:01:29 -07:00
Harshavardhana
dad28fbe16
ls modifications - always print for multiple arguments files first and directories second
2015-09-15 23:03:45 -07:00
Harshavardhana
265d532237
Make changes over vadmestes changes
2015-09-15 20:55:32 -07:00
Anis ELLEUCH
b7fbd307d4
Print folder names when the user asks to list several folders
2015-09-15 20:55:32 -07:00
Harshavardhana
c50b16c70f
Update documentation for mb, cp, mirror for files and folders with space characters
2015-09-07 01:22:14 -07:00
Harshavardhana
c46ea80fff
Move primitives for add, list, remove into their own subcommands as alias,host etc.
2015-09-01 19:58:33 -07:00
Harshavardhana
aaec806897
Simplify help messages
2015-09-01 14:54:13 -07:00
Anand Babu (AB) Periasamy
fddcb821fa
URL related bug fixes and cleanup
2015-08-30 02:14:24 -07:00
Harshavardhana
cbc9d96d50
Format help for all commands
2015-08-25 20:13:50 -07:00
Harshavardhana
c48a98de62
Add proper comments.
2015-08-25 16:54:55 -07:00
Harshavardhana
3df07ac29f
Add checkCommandSyntax for all commands
2015-08-24 19:31:30 -07:00
Harshavardhana
a06a926b66
Move coloring to their own main* functions
2015-08-24 12:12:25 -07:00
Harshavardhana
f089dc1b68
End sentences with a . for readability
2015-08-23 01:35:32 -07:00
Anand Babu (AB) Periasamy
e61ad067cd
final review of all error messages
2015-08-22 23:15:30 -07:00