From 06804e6ca30dab0fe992839de8b84024a4e78b5d Mon Sep 17 00:00:00 2001 From: p4535992 Date: Thu, 21 Sep 2023 12:49:41 +0200 Subject: [PATCH] made the private method to add a directory to the zipoutputstream public --- src/main/java/org/zeroturnaround/zip/ZipUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/zeroturnaround/zip/ZipUtil.java b/src/main/java/org/zeroturnaround/zip/ZipUtil.java index 111ac85..5adfcbe 100644 --- a/src/main/java/org/zeroturnaround/zip/ZipUtil.java +++ b/src/main/java/org/zeroturnaround/zip/ZipUtil.java @@ -1742,7 +1742,7 @@ public static void pack(File sourceDir, OutputStream os, NameMapper mapper, int * @param mustHaveChildren * if true, but directory to pack doesn't have any files, throw an exception. */ - private static void pack(File dir, ZipOutputStream out, NameMapper mapper, String pathPrefix, boolean mustHaveChildren) throws IOException { + public static void pack(File dir, ZipOutputStream out, NameMapper mapper, String pathPrefix, boolean mustHaveChildren) throws IOException { String[] filenames = dir.list(); if (filenames == null) { if (!dir.exists()) {