MCPcopy Create free account
hub / github.com/BaseXdb/basex / normalize

Method normalize

basex-core/src/main/java/org/basex/io/IOFile.java:387–395  ·  view source on GitHub ↗

Returns a native file path representation. If normalization fails, returns the original path. @return path

()

Source from the content-addressed store, hash-verified

385 * @return path
386 */
387 public IOFile normalize() {
388 try {
389 final Path path = toPath().toRealPath();
390 return new IOFile(path + (Files.isDirectory(path) ? "/" : ""));
391 } catch(final IOException ex) {
392 Util.debug(ex);
393 return this;
394 }
395 }
396
397 /**
398 * Checks if a file is hidden.

Callers 15

IOFileMethod · 0.95
chooseRootMethod · 0.95
attributeMethod · 0.45
textMethod · 0.45
atomicMethod · 0.45
finishOpenMethod · 0.45
textMethod · 0.45
nodeMethod · 0.45
stringMethod · 0.45
setFileMethod · 0.45
ProjectViewMethod · 0.45
saveMethod · 0.45

Calls 12

toPathMethod · 0.95
debugMethod · 0.95
addMethod · 0.95
startsWithMethod · 0.95
isDirectoryMethod · 0.80
charAtMethod · 0.80
appendMethod · 0.65
sizeMethod · 0.65
getMethod · 0.65
toStringMethod · 0.65
lengthMethod · 0.45
startsWithMethod · 0.45

Tested by 2

assertXMLMethod · 0.36
assertStringValueMethod · 0.36