(oldPath, dstPath string)
| 620 | } |
| 621 | |
| 622 | func (f FileOp) Mv(oldPath, dstPath string) error { |
| 623 | if err := cmd.NewCommandMgr(cmd.WithTimeout(cmdRecursiveTimeout)).Run("mv", oldPath, dstPath); err != nil { |
| 624 | return err |
| 625 | } |
| 626 | return nil |
| 627 | } |
| 628 | |
| 629 | func (f FileOp) Copy(src, dst string) error { |
| 630 | if src = path.Clean("/" + src); src == "" { |