5.39.8 LIST
The LIST command will fill the command's list object with absolute file names. A single field working list is required to receive the canonical file paths.
Syntax:
Command |
Keyword |
Value |
Developer notes for Command/Keyword/Value |
LIST |
DIR |
value |
Optional. Fill working list with directory listing. All files in that directory will be selected. |
EXT |
value |
Optional. Filtering on file extension. The filtering match is case insensitive. |
|
SORT |
*NONE |
Optional. Allows sorting of file names. |
|
*NAME |
Sort on file name. |
||
*MODIFIED |
Sort on modified date. |
||
REVERSE |
*YES |
Optional. Reverse the order of the sort. |
|
*NO |
Default. |
If a directory path specified by the DIR keyword is used then filenames in that directory will be selected.
Example
LIST DIR(/document) EXT(PDF) SERVICE_LIST(PATH)
This will return a list of filenames in the /document directory that have a PDF extension.