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

Method getName

lib/java/io/File.java:685–689  ·  view source on GitHub ↗

Returns the name of the file or directory represented by this file. @return this file's name or an empty string if there is no name part in the file's path.

()

Source from the content-addressed store, hash-verified

683 * the file's path.
684 */
685 public String getName() {
686 int separatorIndex = path.lastIndexOf(separator);
687 return (separatorIndex < 0) ? path : path.substring(separatorIndex + 1,
688 path.length());
689 }
690
691 /**
692 * Returns the pathname of the parent of this file. This is the path up to

Callers 6

toStringMethod · 0.45
toStringMethod · 0.45
toStringMethod · 0.45
toStringMethod · 0.45
toStringMethod · 0.45
toStringMethod · 0.45

Calls 3

lastIndexOfMethod · 0.65
lengthMethod · 0.65
substringMethod · 0.45

Tested by

no test coverage detected