Packaging and delete temporary files

//4、压缩打包
String uuid = UUID.randomUUID().toString();
String zipFile = prePath + "/docx/" + uuid + ".zip";
ZipUtil.zip(file_list, zipFile);

//5、删除临时文件
for (int i = 0; i < file_list.size(); i++) {
File file = new File(file_list.get(i));
file.delete();
}

Guess you like

Origin www.cnblogs.com/littlehb/p/12059596.html