MCPcopy Create free account
hub / github.com/LumaAI-API/Luma-API / GetRootDir

Function GetRootDir

common/utils.go:191–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189}
190
191func GetRootDir() string {
192 _, filename, _, _ := runtime.Caller(0)
193 utilDir := filepath.Dir(filename)
194 paths, _ := filepath.Split(utilDir)
195 return paths
196}
197
198func ToPtr[T any](arg T) *T {
199 return &arg

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected