Integration Cloud 6.1.0 | Applications | Predefined Applications | File Transfer Protocol (FTP/FTPS) | FTP Predefined Operations | listFiles
 
listFiles
Returns a list of file names in a specified remote directory. If path is not specified, the operation retrieves the file listing of the current remote directory. The operation also retrieves additional details such as permissions and ownership information.
Input Parameters
remotePath
String Optional. Absolute or relative path of the remote directory. If remotepath is not specified, the listFiles operation retrieves the directory listing of the current remote directory.
You can use the wildcard characters asterisk (*) and question mark (?) after the last slash mark (/) to view all remote directories that match the specified path.
listFilter
String Optional. Filter that specifies the names of the files to include in the list (for example, *.txt).
Output Parameters
fileList []
String List List of file names matching listFilter.
statusCode
String Standard FTP protocol status code.
statusMessage
String Standard FTP protocol status message.