|
@ -36,6 +36,10 @@ func (c *commandFsMv) Help() string { |
|
|
|
|
|
|
|
|
func (c *commandFsMv) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) { |
|
|
func (c *commandFsMv) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) { |
|
|
|
|
|
|
|
|
|
|
|
if len(args) != 2 { |
|
|
|
|
|
return fmt.Errorf("need to have 2 arguments.") |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
sourcePath, err := commandEnv.parseUrl(args[0]) |
|
|
sourcePath, err := commandEnv.parseUrl(args[0]) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return err |
|
|
return err |
|
|