Merge pull request #1352 from harshavardhana/mirror-url

mirror: Remove checkSyntax target exists for mirror
This commit is contained in:
Harshavardhana
2015-11-16 18:48:48 -08:00
3 changed files with 0 additions and 17 deletions
-8
View File
@@ -85,14 +85,6 @@ func (s *TestSuite) TestMirror(c *C) {
// reset back
console.IsExited = false
err = app.Run([]string{os.Args[0], "mirror", source + "..", filepath.Join(target, "random")})
c.Assert(err, IsNil)
// in case of invalid arguments both are set
c.Assert(console.IsExited, Equals, true)
// reset back
console.IsExited = false
}
func (s *TestSuite) TestCopy(c *C) {
-8
View File
@@ -90,14 +90,6 @@ func checkMirrorSyntax(ctx *cli.Context) {
fatalIf(errInvalidArgument().Trace(), fmt.Sprintf("Target ‘%s’ does not contain bucket name.", tgtURL))
}
}
_, content, err := url2Stat(tgtURL)
fatalIf(err.Trace(tgtURL), "Unable to stat target ‘"+tgtURL+"’.")
if content != nil {
if !content.Type.IsDir() {
fatalIf(errInvalidArgument().Trace(), "Target ‘"+tgtURL+"’ is not a folder.")
}
}
}
}
-1
View File
@@ -91,7 +91,6 @@ func (b barSend) Finish() {
defer close(b.opCh)
b.opCh <- barMsg{Op: pbBarFinish}
<-b.finishCh
console.Println()
}
func cursorAnimate() <-chan rune {