Return a resultset with a structure which defines all the information of the remote files to be listed. Use the LIST command.
 

1 ftp.listFilesAsResultSet

<ftp.listFilesAsResultSet
    pattern='pattern'
    raw='raw'
/>