修改文件保存路径设置

This commit is contained in:
影舞者
2022-11-28 13:23:24 +08:00
parent f8b44e37ea
commit 27c7e3977e
3 changed files with 2 additions and 19 deletions
-17
View File
@@ -271,23 +271,6 @@ func CheckErr(text string, err error, flag bool) {
}
}
func getpath() string {
file, _ := exec.LookPath(os.Args[0])
path1, _ := filepath.Abs(file)
filename := filepath.Dir(path1)
var path string
if strings.Contains(filename, "/") {
tmp := strings.Split(filename, `/`)
path = strings.Join(tmp, `/`)
path += `/`
} else if strings.Contains(filename, `\`) {
tmp := strings.Split(filename, `\`)
path = strings.Join(tmp, `\`)
path += `\`
}
return path
}
func showmode() {
fmt.Println("The specified scan type does not exist")
fmt.Println("-m")