MCPcopy Create free account
hub / github.com/compose-spec/compose-go / abs

Method abs

loader/loader.go:147–152  ·  view source on GitHub ↗
(p string)

Source from the content-addressed store, hash-verified

145}
146
147func (l localResourceLoader) abs(p string) string {
148 if filepath.IsAbs(p) {
149 return p
150 }
151 return filepath.Join(l.WorkingDir, p)
152}
153
154func (l localResourceLoader) Accept(_ string) bool {
155 // LocalResourceLoader is the last loader tested so it always should accept the config and try to get the content.

Callers 2

LoadMethod · 0.95
DirMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected