MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / relPath

Function relPath

internal/metadata/discover.go:174–180  ·  view source on GitHub ↗
(root, p string)

Source from the content-addressed store, hash-verified

172}
173
174func relPath(root, p string) string {
175 rel, err := filepath.Rel(root, p)
176 if err != nil {
177 return p
178 }
179 return filepath.ToSlash(rel)
180}
181
182func shouldSkipDir(name string) bool {
183 switch name {

Callers 3

fetchResourceManifestMethod · 0.85
underAgentsFolderFunction · 0.85
resourceFromFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected