dirname

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 directory path.

Example

dirname(path="/usr/bin/ls") -> "/usr/bin"

Related: basename()