(base, target localPath)
| 73 | } |
| 74 | |
| 75 | func isRelative(base, target localPath) bool { |
| 76 | relative, err := filepath.Rel(base.String(), target.String()) |
| 77 | if err != nil { |
| 78 | return false |
| 79 | } |
| 80 | return relative == "." || relative == stripPathShortcuts(relative) |
| 81 | } |
| 82 | |
| 83 | // remotePath represents always UNIX path, its methods will use path |
| 84 | // package which is always using `/` |
nothing calls this directly
no test coverage detected