MCPcopy Create free account
hub / github.com/MMadmer/EpicAssetsNotifyBot / cleanProjectRoot

Function cleanProjectRoot

internal/config/config.go:94–104  ·  view source on GitHub ↗
(projectRoot string)

Source from the content-addressed store, hash-verified

92}
93
94func cleanProjectRoot(projectRoot string) string {
95 root := strings.TrimSpace(projectRoot)
96 if root == "" {
97 root = "."
98 }
99 abs, err := filepath.Abs(root)
100 if err != nil {
101 return filepath.Clean(root)
102 }
103 return filepath.Clean(abs)
104}
105
106func dataDir() string {
107 if raw := strings.TrimSpace(os.Getenv(EnvDataDir)); raw != "" {

Callers 1

LoadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected