mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-24 14:38:23 +08:00
parent
6bc4cfc8ac
commit
e8c94450f4
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue