enclosingpath(
PATH
)

The enclosingpath( function takes a full path and filename and returns the path 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 path of the folder that contains the file.

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

See Also


History

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