Lines Matching defs:exPath
54 var exPath string
161 exPath = getCurrentAbPath()
162 fmt.Println(exPath)
165 readVersion, versionErr := os.ReadFile(exPath + "/version.txt")
177 mux.Handle("/application/upload/", http.StripPrefix("/application/upload/", http.FileServer(http.Dir(filepath.FromSlash(exPath+"/upload")))))
184 fs := http.FileServer(http.Dir(exPath + "/"))
236 chekDir(exPath + "/logger")
239 dst, err := os.OpenFile(exPath+"/logger/"+fileName, os.O_WRONLY|os.O_CREATE|os.O_APPEND|os.O_SYNC, 0666)
249 fmt.Fprintf(w, fmt.Sprintf("日志写入成功%s", exPath))
364 serverConfigBuffer, err := os.ReadFile(exPath + "/server-config.json")