enclosingfolder(
PATH
)

The enclosingfolder( function takes a full path and filename and returns the name of the folder that contains the file.


Parameters

This function has one parameter:

path – the original full path (may be in either HFS or UNIX format).


Description

This function takes a full path and filename and returns the name of the folder that contains the file.

enclosingpath("drive:folder:file.ext") ☞ folder
enclosingpath("/Users/person/folder/file.ext") ☞ folder

See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but automatically handles both UNIX and HFS paths.