修复ZipUtil压缩成流的方法检查文件时报错问题

This commit is contained in:
Looly 2024-08-15 18:52:17 +08:00
parent 730308af36
commit 26efb16225

View File

@ -303,7 +303,7 @@ public class ZipWriter implements Closeable {
} }
} else { } else {
// issue#IAGYDG 检查加入的文件是否为压缩结果文件本身避免死循环 // issue#IAGYDG 检查加入的文件是否为压缩结果文件本身避免死循环
if (null != this.zipFile && FileUtil.equals(file, zipFile)) { if (FileUtil.equals(file, zipFile)) {
return; return;
} }