Expression functionsFile Pathspath.GetDirectoryNameOn this pagepath.GetDirectoryNameEverything but the last element, with the robot's own separator path.GetDirectoryName(p: string) -> string Arguments NameTypepstring Example {{ path.GetDirectoryName("C:/invoices/2026/ACME-0042.pdf") }} Returns "C:\invoices\2026" on Windows.