Skip to content

Commit da3f0bd

Browse files
yzy945gitee-org
authored andcommitted
update src/WPF/GeneralUpdate.Packet/ViewModels/PacketViewModel.cs.
path变量path = Path.Combine时没有添加文件后缀(.zip),导致File.Exists(path)始终为false Signed-off-by: yzy945 <[email protected]>
1 parent 142ae76 commit da3f0bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WPF/GeneralUpdate.Packet/ViewModels/PacketViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ private async Task CreateZip()
365365
.CreateOperate(OperationType.GZip, packetName, sourcePath, targetPath)
366366
.CreateZip();
367367

368-
var path = Path.Combine(targetPath, packetName);
368+
var path = Path.Combine(targetPath, $"{PacketName}{CurrentFormat}");
369369
await ShowMessage("Compression operation", File.Exists(path) ? $"{path} Created successfully." : $"{path} Creation failure!");
370370
}
371371

0 commit comments

Comments
 (0)