filecatalog
PATH
,
WILDCARD
,
TYPECREATOR
,
FILES

The filecatalog statement creates a list of files in a folder, including any subfolders of that folder


Parameters

This statement has four parameters:

path – Path of folder to be cataloged. This may be in either UNIX or HFS format.

wildcard – Wildcard for matching file name (for example *.jpg or *.html). The default is *, which matches all files.

typecreator – Type Creator for matching files, for example TEXT???? to catalog all text files. Default is ????????, which matches all files.

files – The result is placed in this field or variable. Each line contains the file path and file name.


Description

This statement creates a list of files in a folder, including any subfolders of that folder. This example will create a list of all JPEG images inside the My Images folder (including subfolders)

filecatalog "My Drive:My Documents:My Images:","*.jpg","",jpegArray

Note: This function has been superceded by the filecatalog( function, which should be used for new applications. For compatibility with existing databases, the filecatalog statement returns the results in HFS format. Use the filecatalog( function if you would prefer to use UNIX format.


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.