Skip to content
Please update to the latest release 0.77.2 to address Multiple CVEs.

basename

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

Description

Return the basename of the path.

Example

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

See also