自动打包优化
parent
093c2ef83a
commit
24faa6c603
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue