fix Archiver 最后一个 Entry 为空文件夹时未关闭 Entry

This commit is contained in:
bwcx_jzy
2023-12-05 16:45:33 +08:00
parent c61946650e
commit c359a547cf
2 changed files with 34 additions and 0 deletions

View File

@@ -177,6 +177,8 @@ public class StreamArchiver implements Archiver {
for (File childFile : files) {
addInternal(childFile, entryName, filter);
}
} else {
out.closeArchiveEntry();
}
} else {
if (file.isFile()) {