From da3f0bd493d93be3c5872d5ccf3175295b083cd4 Mon Sep 17 00:00:00 2001 From: yzy945 <11352937+yzy945@user.noreply.gitee.com> Date: Thu, 4 Apr 2024 04:58:36 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/WPF/GeneralUpdate.Packet/ViewModel?= =?UTF-8?q?s/PacketViewModel.cs.=20path=E5=8F=98=E9=87=8Fpath=20=3D=20Path?= =?UTF-8?q?.Combine=E6=97=B6=E6=B2=A1=E6=9C=89=E6=B7=BB=E5=8A=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=90=8E=E7=BC=80=EF=BC=88.zip=EF=BC=89=EF=BC=8C?= =?UTF-8?q?=E5=AF=BC=E8=87=B4File.Exists(path)=E5=A7=8B=E7=BB=88=E4=B8=BAf?= =?UTF-8?q?alse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yzy945 <11352937+yzy945@user.noreply.gitee.com> --- src/WPF/GeneralUpdate.Packet/ViewModels/PacketViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WPF/GeneralUpdate.Packet/ViewModels/PacketViewModel.cs b/src/WPF/GeneralUpdate.Packet/ViewModels/PacketViewModel.cs index fe73d04..82cd5ec 100644 --- a/src/WPF/GeneralUpdate.Packet/ViewModels/PacketViewModel.cs +++ b/src/WPF/GeneralUpdate.Packet/ViewModels/PacketViewModel.cs @@ -365,7 +365,7 @@ namespace GeneralUpdate.Packet.ViewModels .CreateOperate(OperationType.GZip, packetName, sourcePath, targetPath) .CreateZip(); - var path = Path.Combine(targetPath, packetName); + var path = Path.Combine(targetPath, $"{PacketName}{CurrentFormat}"); await ShowMessage("Compression operation", File.Exists(path) ? $"{path} Created successfully." : $"{path} Creation failure!"); } -- Gitee