Contents Previous Next Subchapters

ls - Listing File and Directory Names On a Remote Host
Syntax ftp("ls")
See Also: openftp , cdftp

Returns a character matrix containing a listing of the current directory on the remote machine. Each row of the return value contains a directory entry left justified in the row with spaces used to fill the right side. The column dimension of the return value is the maximum number of characters over all the directory entries.

If ftp is not currently linked to O-Matrix, enter the command
     dll dll\ftp.dll, ftp
You can now open a remote connection by entering the command
     ftp("open", "", "anonymous", "guest")
If O-Matrix responds
the connection was successful. In this case you can list the current directory on the remote machine by entering