Paths: TODO: is this the best way to escape paths? EscapePathName returns a name that replaces any / with \\
(name string)
| 220 | |
| 221 | // EscapePathName returns a name that replaces any / with \\ |
| 222 | func EscapePathName(name string) string { |
| 223 | return strings.ReplaceAll(name, "/", `\\`) |
| 224 | } |
| 225 | |
| 226 | // UnescapePathName returns a name that replaces any \\ with / |
| 227 | func UnescapePathName(name string) string { |