diff --git a/src/main/java/com/zcloud/util/Warden.java b/src/main/java/com/zcloud/util/Warden.java index 7163ff0a..701953a5 100644 --- a/src/main/java/com/zcloud/util/Warden.java +++ b/src/main/java/com/zcloud/util/Warden.java @@ -384,6 +384,11 @@ public class Warden { zipOut.write(buffer, 0, len); } fileInputStream.close(); + // 删除文件 + boolean isDelete = file.delete(); + if (isDelete){ + System.out.println("删除文件成功"); + } } zipOut.flush(); zipOut.closeEntry();