FtpLs

The FtpLs method returns a listing (in short format) of a directory on the server. The directory listing is placed in the attribute Response as an Object Rexx array of lines. The array will be empty if this method encounters an error.

Each member of the array containing the directory listing usually only contains the name of a file in the specified directory. But the format may be different in some cases.

Syntax:

>>-- myftpobj~FtpLs(--+-----------+--)-----------------------------------><
                      +--pattern--+

Arguments:

pattern

The filename pattern to use to filter the directory listing. You can use the standard '*' and '?' wildcard characters in the pattern. This argument is optional. If this argument is not specified the default pattern './*' will be used.

Return Values:

A value of 0 indicates successful execution of the method. The value -1 indicates an error. You can get the specific error code by inspection of the method FtpErrno. Possible values:

FTPCOMMAND

The internal FTP command or the arguments to the method are in error.