fix zip bug

This commit is contained in:
Looly
2020-07-14 10:11:08 +08:00
parent 03689be5fe
commit e50942efbc
2 changed files with 3 additions and 2 deletions

View File

@@ -228,8 +228,8 @@ public class ZipUtil {
// 调用递归压缩方法进行目录或文件压缩
zip(srcFile, srcRootDir, zipOutputStream, filter);
zipOutputStream.flush();
zipOutputStream.finish();
}
zipOutputStream.finish();
} catch (IOException e) {
throw new IORuntimeException(e);
}