删除缓存文件

limingyu-20240401-app登录曹实业判断修改
liujun 2024-02-26 15:31:15 +08:00
parent 6c16f4dc8e
commit 8174eac8d8
1 changed files with 5 additions and 0 deletions

View File

@ -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();