|
|
@@ -147,10 +147,14 @@ public class ZipUtils {
|
|
|
ZipInputStream zipInputStream = new ZipInputStream(new ByteArrayInputStream(zipData));
|
|
|
ZipEntry zipEntry;
|
|
|
while ((zipEntry = zipInputStream.getNextEntry()) != null) {
|
|
|
+ File outFile = new File(folderPath + File.separator + zipEntry.getName());
|
|
|
+ logger.info("Unzipping to... " + outFile.getPath());
|
|
|
if (zipEntry.isDirectory()) {
|
|
|
+ if (!outFile.exists()) {
|
|
|
+ outFile.mkdirs();
|
|
|
+ }
|
|
|
continue;
|
|
|
}
|
|
|
- File outFile = new File(folderPath + File.separator + zipEntry.getName());
|
|
|
if (!outFile.getParentFile().exists()) {
|
|
|
outFile.getParentFile().mkdirs();
|
|
|
}
|
|
|
@@ -161,7 +165,6 @@ public class ZipUtils {
|
|
|
outputStream.write(b);
|
|
|
}
|
|
|
outputStream.close();
|
|
|
- logger.info("Unziped to... " + outFile.getPath());
|
|
|
}
|
|
|
zipInputStream.close();
|
|
|
logger.info("Unzip done");
|