自动打包优化

dev
youhong.ai 2023-07-18 11:42:11 +08:00
parent 093c2ef83a
commit 24faa6c603
1 changed files with 3 additions and 1 deletions

View File

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