mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
parent
6bc4cfc8ac
commit
e8c94450f4
@ -319,7 +319,7 @@ func (f FileOp) Cut(oldPaths []string, dst, name string, cover bool) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (f FileOp) Mv(oldPath, dstPath string) error {
|
func (f FileOp) Mv(oldPath, dstPath string) error {
|
||||||
cmdStr := fmt.Sprintf("mv %s %s", oldPath, dstPath)
|
cmdStr := fmt.Sprintf(`mv "%s" "%s"`, oldPath, dstPath)
|
||||||
if err := cmd.ExecCmd(cmdStr); err != nil {
|
if err := cmd.ExecCmd(cmdStr); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user