Returns the base name of the given path. For example for "/abc/somefile.txt" it will return "somefile.txt"
The path to get the basename of
Optional
An optional extension to remove from the basename
Returns the base name of the given path. For example for "/abc/somefile.txt" it will return "somefile.txt"