Atlantiraptor Docs

basename

Type: Function · Category: popular

Return the basename of the path.

Example

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

See also

Argument Type Description
path Any (required) Extract directory name of path
sep string Separator to use (default /)
path_type string Type of path (e.g. windows, linux)

Platforms: macOS, Linux, Windows