mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fs.mv ensures there are 2 arguments
This commit is contained in:
parent
b2c1c209a5
commit
41cc6e661b
|
@ -36,6 +36,10 @@ func (c *commandFsMv) Help() string {
|
|||
|
||||
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])
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue