The FtpDir method returns a listing (in long 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.

The format of the returned directory listing depends on the operating system running on the FTP server machine.


>>-- myftpobj~FtpDir(--+-----------+--)----------------------------------><



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:


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