Commit Graph
8 Commits
Author SHA1 Message Date
Harshavardhana edb1824006 mc: Simplify, conditional checks across codebase. 2016-04-04 14:58:36 -07: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 ce7ecef8ae Add more coverage tests 2015-09-28 23:26:12 -07:00
Harshavardhana 42053a39ae Add mb related tests 2015-07-24 23:46:47 -07:00
Harshavardhana b90e016892 Add command context testing 2015-07-24 12:42:33 -07:00
Harshavardhana f14f983a76 Add common methods test 2015-07-23 21:00:45 -07:00
Harshavardhana 7b1ed5b824 Fix data race reported by golang 1.5 2015-07-10 21:04:35 -07:00
Harshavardhana a0177fc1fe Finish object handlers for mc commands, updated relevant tests respectively 2015-05-21 16:52:25 -07:00