function
| Library: FTP support (OMFTP) Include: omftp.xin | Returns: A directory listing. | 
define external stream function FTPConnectionListDir
                        value FTPConnection this-FTPConnection
                    dir value string dir optional
                   full value switch full optional initial {false}
Argument definitions
This function lists the entries in the current directory or another specified directory.
To use this function, you must include the following line near the start of your program:
include "omftp.xin"
; list directory contents with full listing output FTPConnectionListDir MyCon full true
; list the contents of the subdirectory "test-dir" output FTPConnectionListDir MyCon dir "test-dir" full true