mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
!1124 fix(v6) Archiver 最后一个 Entry 为空文件夹时未关闭 Entry
Merge pull request !1124 from 蒋小小/v6-dev
This commit is contained in:
commit
5dbe0a7337
@ -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