Returns the base name of a path.
Path to get the base name of.
Optional
Optional extension to remove from the result.
Base name.
Returns the base name of a path.