decorative banner

Previous | Next               Table Of Contents > 3 File transfer commands > 3.3 Obtaining folder listings

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

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

Some examples are

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


Previous | Next