Skip to main content

path.GetDirectoryName

Everything but the last element, with the robot's own separator

path.GetDirectoryName(p: string) -> string

Arguments

NameType
pstring

Example

{{ path.GetDirectoryName("C:/invoices/2026/ACME-0042.pdf") }}

Returns "C:\invoices\2026" on Windows.