basename

Function

ArgDescriptionType
pathExtract directory name of pathAny (required)
sepSeparator to use (default /)string
path_typeType of path (e.g. windows, linux)string

Description

Return the basename of the path.

Example

basename(path="/foo/bar") -> "bar"

Related: dirname()