diff --git a/src/main/java/com/zcloud/util/Warden.java b/src/main/java/com/zcloud/util/Warden.java index eb23c46b..902003c4 100644 --- a/src/main/java/com/zcloud/util/Warden.java +++ b/src/main/java/com/zcloud/util/Warden.java @@ -380,6 +380,8 @@ public class Warden { String fileName = file.getName(); if (fileNames.contains(fileName)){ fileName = (random.nextInt(90000) + 10000) + fileName; + } else { + fileNames = fileNames + fileName + ","; } ZipEntry zipEntry = new ZipEntry(fileName); zipOut.putNextEntry(zipEntry);