MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / StripSlashes

Method StripSlashes

cli/pkg/k8s/filespec.go:71–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69}
70
71func (p localPath) StripSlashes() localPath {
72 return newLocalPath(stripLeadingSlash(p.file))
73}
74
75func isRelative(base, target localPath) bool {
76 relative, err := filepath.Rel(base.String(), target.String())

Callers

nothing calls this directly

Calls 2

newLocalPathFunction · 0.85
stripLeadingSlashFunction · 0.85

Tested by

no test coverage detected