Skip to content

Commit

Permalink
disable compression for zip
Browse files Browse the repository at this point in the history
  • Loading branch information
DasBabyPixel committed Jul 14, 2024
1 parent d1b4f62 commit d2e814f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ private ZipUtil() {
public static @Nullable Path zipToFile(@NonNull Path dir, @NonNull Path target, @Nullable Predicate<Path> filter) {
if (Files.exists(dir)) {
try (var out = new ZipOutputStream(Files.newOutputStream(target), StandardCharsets.UTF_8)) {
out.setLevel(ZipOutputStream.STORED); // Disable compression
zipDir(out, dir, filter);
return target;
} catch (IOException exception) {
Expand Down

0 comments on commit d2e814f

Please sign in to comment.