Skip to content
Please update to 0.77.3 or later to address multiple CVEs.
Velociraptor 0.77.4 is now available!

dirname

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

Example

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

See also