[FIX] Download ZIP fix

This commit is contained in:
Gravita 2021-07-11 23:08:39 +07:00
parent ac15002327
commit 1912393a40

View file

@ -59,6 +59,7 @@ public static void downloadZip(URL url, Path dir) throws IOException {
for (ZipEntry entry = input.getNextEntry(); entry != null; entry = input.getNextEntry()) {
if (entry.isDirectory()) {
Files.createDirectory(dir.resolve(IOHelper.toPath(entry.getName())));
continue;
}
// Unpack entry
String name = entry.getName();