From e8c94450f409a6e5da6fe00e677a5f69f743d29a Mon Sep 17 00:00:00 2001 From: igophper <34326532+igophper@users.noreply.github.com> Date: Sat, 20 Jan 2024 22:17:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E5=B8=A6=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E7=AC=A6=E5=8F=B7=E6=96=87=E4=BB=B6=E7=9A=84=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98=20(#3657)=20(#3658)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #3657 --- backend/utils/files/file_op.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }