mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix(v6) Archiver 最后一个 Entry 为空文件夹时未关闭 Entry
This commit is contained in:
parent
5ceaa07fad
commit
2863ffa77e
@ -191,6 +191,8 @@ public class StreamArchiver implements Archiver {
|
||||
for (final File childFile : files) {
|
||||
addInternal(childFile, entryName, predicate);
|
||||
}
|
||||
} else {
|
||||
out.closeArchiveEntry();
|
||||
}
|
||||
} else {
|
||||
if (file.isFile()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user