MCPcopy Index your code
hub / github.com/screego/server / getExecutableDir

Function getExecutableDir

config/config.go:261–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259}
260
261func getExecutableDir() (string, *FutureLog) {
262 ex, err := osExecutable()
263 if err != nil {
264 return "", &FutureLog{
265 Level: zerolog.ErrorLevel,
266 Msg: "Could not get path of executable using working directory instead. " + err.Error(),
267 }
268 }
269 return filepath.Dir(ex), nil
270}
271
272func getFiles(relativeTo string) []string {
273 var result []string

Callers 1

getExecutableOrWorkDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected