MCPcopy
hub / github.com/go-task/task / getFilePath

Function getFilePath

experiments/experiments.go:70–75  ·  view source on GitHub ↗
(filename, dir string)

Source from the content-addressed store, hash-verified

68}
69
70func getFilePath(filename, dir string) string {
71 if dir != "" {
72 return filepath.Join(dir, filename)
73 }
74 return filename
75}
76
77func readDotEnv(dir string) {
78 env, err := godotenv.Read(getFilePath(".env", dir))

Callers 1

readDotEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…