<< back to sysax.com Product page

4.3.4. List contents of multiple remote directories

The mls Displays an abbreviated list of a remote directory's files and subdirectories. This command followed by the parameters are 'remote-files and local-file'. The remote-files specifies the files for which you want to see a listing. Remote-files must be specified; type "-" to use the current working directory on the remote computer and the local-file specifies a local file to store the listing. Type "-" to display the listing on the screen.

The Syntax is

Exhibit 4.15. Syntax of "mls" command

 mls remote-files [,,,] local-file  

The example is

Exhibit 4.16. Example of "mls" command

 syaxftp> mls

 Remote files 2007sep12.txt,2007sep13.txt
 Local file msg.txt
 output to local-file: msg.txt?
 200 Command okay
 150 File status okay; about to open data connection
 226 Closing data connection
 sysaxftp: 130 bytes received in 0.03Seconds 4.19Kbytes/sec.