Media_ListFolder ( folder ; listAll )
Media_ListFolder gives you a list of the files and folders in the specified folder.
Parameter | Description |
---|---|
folder | Path to the folder to be listed. |
listAll | If “1” or “True”, the list includes invisible files and folders. |
Folders and Special Characters
When the listAll
parameter is set to “1” or “True”, folder names are preceded by the “ƒ
” character. Invisible files are often prefixed with a period “.
” (macOS).
Examples
To get a list of all files in the default folder:
Set Field [ MyTable::Response ;
Media_ListFolder ( "" ; False ) ]
To list all files and folders in the Applications folder:
Set Field [ MyTable::Response ;
Media_ListFolder ( ".A" ; True ) ]