Skip to content

Commit f741713

Browse files
authored
fixed missing parameter
Fixed not working example - Added missing zipParameters to .addFile() function
1 parent ddf531f commit f741713

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libraries-io/src/main/java/com/baeldung/java/io/zip4j/ZipSingleFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static void main(String[] args) throws IOException {
2121
if (!fileToAdd.exists()) {
2222
fileToAdd.createNewFile();
2323
}
24-
zipFile.addFile(fileToAdd);
24+
zipFile.addFile(fileToAdd, zipParameters);
2525
zipFile.close();
2626
}
2727
}

0 commit comments

Comments
 (0)