mirror of
https://github.com/SKCraft/Launcher.git
synced 2024-11-27 12:46:22 +01:00
Fix extraction of folders inside ZipExtract (#271)
This commit is contained in:
commit
dd62193b0b
@ -46,7 +46,11 @@ public class ZipExtract implements Runnable {
|
||||
while ((entry = zis.getNextEntry()) != null) {
|
||||
if (matches(entry)) {
|
||||
File file = new File(getDestination(), entry.getName());
|
||||
writeEntry(zis, file);
|
||||
if (entry.isDirectory()) {
|
||||
file.mkdirs();
|
||||
} else {
|
||||
writeEntry(zis, file);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user