Return the basename of the path. That is the second element of the pair returned by passing path into path.split.
The path to process.
The basename.
path.getBasename("/path/to/file.txt"); // returns "file.txt"path.getBasename("/path/to/dir"); // returns "dir" Copy
path.getBasename("/path/to/file.txt"); // returns "file.txt"path.getBasename("/path/to/dir"); // returns "dir"
Return the basename of the path. That is the second element of the pair returned by passing path into path.split.