fix: 抓包文件下载zip时目录同名导致删除压缩无内容

This commit is contained in:
TsMask
2024-09-20 17:58:17 +08:00
parent 3b507c447c
commit 333635bd0f

View File

@@ -145,7 +145,7 @@ func (s *TCPdump) DumpDownload(neType, neId, taskCode string) (string, error) {
neTypeLower := strings.ToLower(neInfo.NeType)
// 网管本地路径
localDirPath := fmt.Sprintf("/tmp/omc/tcpdump/%s/%s", neTypeLower, neInfo.NeId)
localDirPath := fmt.Sprintf("/tmp/omc/tcpdump/zip/%s/%s", neTypeLower, neInfo.NeId)
if runtime.GOOS == "windows" {
localDirPath = fmt.Sprintf("C:%s", localDirPath)
}