()
| 17 | } |
| 18 | |
| 19 | func (p *URI) Filepath() string { |
| 20 | path := p.Path |
| 21 | if path[0] == '/' && len(filepath.VolumeName(path[1:])) == 2 { |
| 22 | // Strip leading '/' from paths beginning with a drive letter. |
| 23 | path = path[1:] |
| 24 | } |
| 25 | return filepath.FromSlash(path) |
| 26 | } |
no outgoing calls