fix: 抓包文件下载zip时目录同名导致删除压缩无内容
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user