foldercontents(
PATH
)

The foldercontents( function returns a list of all of the contents of a folder.


Parameters

This function has one parameter:

path – the path of the folder to be listed. This may be in either UNIX or HFS format.


Description

This function returns a list of all of the contents of a folder. This example lists the contents of the current user’s Documents folder.

foldercontents("~/Documents")

This function only lists the top level contents of the folder. If you want a list of both the top level contents and all subfolders, use the filecatalog( function.


See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but now supports file names longer than 31 characters, and also supports both UNIX and HFS paths.