()
| 193 | } |
| 194 | |
| 195 | public FilePath normalize() { |
| 196 | if (normalized != null) { |
| 197 | return normalized; |
| 198 | } |
| 199 | |
| 200 | var backslash = value.contains("\\"); |
| 201 | var r = backslash ? toWindows() : toUnix(); |
| 202 | normalized = r; |
| 203 | return r; |
| 204 | } |
| 205 | |
| 206 | public FilePath resolveTildeHome(FilePath dir) { |
| 207 | return value.startsWith("~") ? FilePath.of(value.replace("~", dir.toString())) : this; |
no test coverage detected