Parent(
     path:path,
     [int:levels]
)
path

Arguments

path

File or folder path.

levels

Optional. Number of levels up to go.

Return value

Parent of specified path.

Description

Returns the parent of the specified path (i.e. the input path with the final component removed).

The optional levels argument lets you go up more than one level.

Example:

Output(Parent("C:\one\two\file.jpg"));
--> C:\one\two

See also:
Count
FileExt
FilePart
IsParent
Root
Stem