MCPcopy Create free account
hub / github.com/cogentcore/core / UnescapePathName

Function UnescapePathName

tree/nodebase.go:227–229  ·  view source on GitHub ↗

UnescapePathName returns a name that replaces any \\ with /

(name string)

Source from the content-addressed store, hash-verified

225
226// UnescapePathName returns a name that replaces any \\ with /
227func UnescapePathName(name string) string {
228 return strings.ReplaceAll(name, `\\`, "/")
229}
230
231// Path returns the path to this node from the tree root,
232// using [Node.Name]s separated by / delimeters. Any

Callers 1

FindPathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected