自动打包优化

dev
youhong.ai 2023-07-18 11:41:39 +08:00
parent 40a3a998d5
commit 093c2ef83a
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ public class FileCompressor {
if (StrUtil.isBlank(finalPath)) { if (StrUtil.isBlank(finalPath)) {
finalPath = "/"; finalPath = "/";
} }
finalPath = finalPath.replace(File.separator, "/");
ZipEntry zipEntry = new ZipEntry(finalPath); ZipEntry zipEntry = new ZipEntry(finalPath);
zipOutputStream.putNextEntry(zipEntry); zipOutputStream.putNextEntry(zipEntry);