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

Method StripSlashes

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

Source from the content-addressed store, hash-verified

119}
120
121func (p remotePath) StripSlashes() remotePath {
122 return newRemotePath(stripLeadingSlash(p.file))
123}
124
125// strips trailing slash (if any) both unix and windows style
126func stripTrailingSlash(file string) string {

Callers

nothing calls this directly

Calls 2

newRemotePathFunction · 0.85
stripLeadingSlashFunction · 0.85

Tested by

no test coverage detected