<< back to sysax.com Product page

3.3. Obtaining folder listings

The contents of a folder can be listed and stored into a user specified list name. Each item in the list can then be individually accessed. The ftpgetlist command can be used to obtain a listing of the current working path. The predefined keywords local or remote are used to specify either the local or remote system. A user specified list name is used to store the listing result. The ftpresult predefined status flag is set to the predefined constant success if the command completed successfully.

The syntax is

Exhibit 3.11. table title

ftpgetlist <keywords: local, remote>, <list name>;

Some examples are

Exhibit 3.12. table title

ftpgetlist local, @local_list; #get the listing of the current local working path

ftpgetlist remote, @remote_list; #get the listing of the current remote working path