diff --git a/src/test/java/builderpackage/FileCompressor.java b/src/test/java/builderpackage/FileCompressor.java index 6d82d7c..d7fce1e 100644 --- a/src/test/java/builderpackage/FileCompressor.java +++ b/src/test/java/builderpackage/FileCompressor.java @@ -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);