MCPcopy Create free account
hub / github.com/davidgiven/luje / getAbsoluteName

Method getAbsoluteName

lib/java/io/File.java:1463–1476  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1461// }
1462
1463 private String getAbsoluteName() {
1464 File f = getAbsoluteFile();
1465 String name = f.getPath();
1466
1467 if (f.isDirectory() && name.charAt(name.length() - 1) != separatorChar) {
1468 // Directories must end with a slash
1469 name = new StringBuilder(name.length() + 1).append(name)
1470 .append('/').toString();
1471 }
1472 if (separatorChar != '/') { // Must convert slashes.
1473 name = name.replace(separatorChar, '/');
1474 }
1475 return name;
1476 }
1477
1478// private void writeObject(ObjectOutputStream stream) throws IOException {
1479// stream.defaultWriteObject();

Callers 1

toURIMethod · 0.95

Calls 8

getAbsoluteFileMethod · 0.95
getPathMethod · 0.95
isDirectoryMethod · 0.95
charAtMethod · 0.95
lengthMethod · 0.95
replaceMethod · 0.95
toStringMethod · 0.65
appendMethod · 0.65

Tested by

no test coverage detected