mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix Archiver 最后一个 Entry 为空文件夹时未关闭 Entry
This commit is contained in:
@@ -177,6 +177,8 @@ public class StreamArchiver implements Archiver {
|
||||
for (File childFile : files) {
|
||||
addInternal(childFile, entryName, filter);
|
||||
}
|
||||
} else {
|
||||
out.closeArchiveEntry();
|
||||
}
|
||||
} else {
|
||||
if (file.isFile()) {
|
||||
|
Reference in New Issue
Block a user