The LIST command gets a list of file names from the remote FTP server.
The list object argument requires one, two or five fields.
If a one-field list is being used, then the unprocessed lines are added to the list.
If a two-field list is being used, the first field receives the file type and second field receives the file name.
If a five-field list is being used, the first field receives the file type, the second field receives the date, the third field receive the time, the fourth field receives the size and fifth field receives the file name.
The type field can contain the following values:
Syntax:
|
Example
LIST PATH(/folder/*.csv) #WRKLST(LINE)
LIST PATH(/folder/*.csv) #WRKLST(TYPE,NAME)
LIST PATH(/folder/*.csv) #WRKLST(TYPE,DATE,TIME,SIZE,NAME)