fix: 修复下载 pcap 文件名称错误
This commit is contained in:
@@ -251,7 +251,7 @@ public class JobPlaybookExecResultChecker extends QuartzJobBean {
|
|||||||
|
|
||||||
String pcapId = T.StrUtil.uuid();
|
String pcapId = T.StrUtil.uuid();
|
||||||
// 上传 pcap 文件流
|
// 上传 pcap 文件流
|
||||||
File pcapFile = FileResourceUtil.createFile(resources, job.getWorkspaceId(), Constants.FileTypeEnum.PCAP.getType(), pcapId, pcapId + "pcap");
|
File pcapFile = FileResourceUtil.createFile(resources, job.getWorkspaceId(), Constants.FileTypeEnum.PCAP.getType(), pcapId, pcapId + ".pcap");
|
||||||
File parentDir = pcapFile.getParentFile();
|
File parentDir = pcapFile.getParentFile();
|
||||||
if (!parentDir.exists()) {
|
if (!parentDir.exists()) {
|
||||||
parentDir.mkdirs();
|
parentDir.mkdirs();
|
||||||
|
|||||||
Reference in New Issue
Block a user