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.

For example direname(path="/usr/bin/ls") -> “/usr/bin”

Related: basename()

comments powered by Disqus