escapePath URL-encodes special characters but leaves slashes unchanged
(p string)
| 296 | |
| 297 | // escapePath URL-encodes special characters but leaves slashes unchanged |
| 298 | func escapePath(p string) string { |
| 299 | return strings.ReplaceAll(url.PathEscape(p), "%2F", "/") |
| 300 | } |
| 301 | |
| 302 | func parseFile(opts BrowseOptions, f string) (p string, start int, end int, err error) { |
| 303 | if f == "" { |