MCPcopy Index your code
hub / github.com/xpipe-io/xpipe / normalize

Method normalize

core/src/main/java/io/xpipe/core/FilePath.java:195–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 7

hashCodeMethod · 0.95
equalsMethod · 0.95
startsWithMethod · 0.95
relativizeMethod · 0.95
joinMethod · 0.80
ofMethod · 0.80
serializeMethod · 0.80

Calls 3

toWindowsMethod · 0.95
toUnixMethod · 0.95
containsMethod · 0.80

Tested by

no test coverage detected