diff --git a/backend/utils/files/file_op.go b/backend/utils/files/file_op.go index 15c282ed3..50460c6c6 100644 --- a/backend/utils/files/file_op.go +++ b/backend/utils/files/file_op.go @@ -319,7 +319,7 @@ func (f FileOp) Cut(oldPaths []string, dst, name string, cover bool) 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 { return err }