Skip to content

Commit

Permalink
fix zip builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Apr 6, 2024
1 parent 7836b93 commit 0c250f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private void append(String path, String parent) throws Exception {
String name = FileUtils.getName(path);
if (FileUtils.isDirectory(path)) {
for (String child : FileUtils.listFiles(path)) {
append(path + "/" + child, parent + "/" + child);
append(path + "/" + child, parent + "/" + name);
}
} else {
ZipEntry entry = new ZipEntry((parent + "/" + name).replaceAll("//", "/"));
Expand Down

0 comments on commit 0c250f2

Please sign in to comment.