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

Method StripShortcuts

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

Source from the content-addressed store, hash-verified

114}
115
116func (p remotePath) StripShortcuts() remotePath {
117 p = p.Clean()
118 return newRemotePath(stripPathShortcuts(p.file))
119}
120
121func (p remotePath) StripSlashes() remotePath {
122 return newRemotePath(stripLeadingSlash(p.file))

Callers

nothing calls this directly

Calls 3

CleanMethod · 0.95
newRemotePathFunction · 0.85
stripPathShortcutsFunction · 0.85

Tested by

no test coverage detected