Skip to content

Commit f7f79c3

Browse files
Merge branch 'Compress' of https://github.com/genexuslabs/JavaClasses into Compress
2 parents e12a0a4 + 5f5233e commit f7f79c3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

gxcompress/src/main/java/com/genexus/compression/Compression.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import org.apache.logging.log4j.Logger;
44

55
import java.io.File;
6-
import java.util.ArrayList;
7-
import java.util.List;
86
import java.util.Vector;
97

108
public class Compression {
@@ -70,4 +68,4 @@ public void clear() {
7068
this.format = "";
7169
this.filesToCompress = new Vector<>();
7270
}
73-
}
71+
}

gxcompress/src/main/java/com/genexus/compression/GXCompressor.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,6 @@ public static void decompressJar(File jarFile, String outputPath) throws IOExcep
412412
if (!outputFile.getPath().startsWith(outputDir.getCanonicalPath() + File.separator)) {
413413
throw new IOException("Entry is outside of the target dir: " + entry.getName());
414414
}
415-
if (entry.isDirectory() && !outputFile.exists() && !outputFile.mkdirs()) {
416-
throw new IOException("Failed to create directory " + outputFile.getAbsolutePath());
417415
} else {
418416
try (FileOutputStream fos = new FileOutputStream(outputFile)) {
419417
int len;

0 commit comments

Comments
 (0)