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

Function newRemotePath

cli/pkg/k8s/filespec.go:89–94  ·  view source on GitHub ↗
(fileName string)

Source from the content-addressed store, hash-verified

87}
88
89func newRemotePath(fileName string) remotePath {
90 // we assume remote file is a linux container but we need to convert
91 // windows path separators to unix style for consistent processing
92 file := strings.ReplaceAll(stripTrailingSlash(fileName), `\`, "/")
93 return remotePath{file: file}
94}
95
96func (p remotePath) String() string {
97 return p.file

Callers 6

DirMethod · 0.85
BaseMethod · 0.85
CleanMethod · 0.85
JoinMethod · 0.85
StripShortcutsMethod · 0.85
StripSlashesMethod · 0.85

Calls 1

stripTrailingSlashFunction · 0.85

Tested by

no test coverage detected