MCPcopy Create free account
hub / github.com/devfeel/dotweb / GetCurrentDirectory

Function GetCurrentDirectory

framework/file/file.go:10–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func GetCurrentDirectory() string {
11 dir, err := filepath.Abs(filepath.Dir(os.Args[0]))
12 if err != nil {
13 log.Fatalln(err)
14 }
15 return strings.Replace(dir, "\\", "/", -1)
16}
17
18// check filename exists
19func Exist(filename string) bool {

Callers 5

mainFunction · 0.92
mainFunction · 0.92
NewAppLogFunction · 0.92
InitConfigFunction · 0.92

Calls

no outgoing calls

Tested by 1