# FtpList

Calling this method list files in a FTP directory.

### **Method Name:**

FtpList

### **Payload:**

The direct command requires the following properies:

* **FtpConfigName**: Name of the FTP configuration as listed in the module twin
* **FtpServerFolder**: Folder name on FTP server to list files from
* **FilePatterns**: File pattern to list
* **ReturnDetailedFileFolderStructure**: Boolean value that decides wether to return a detailed folder structure
* **Recursive**: Boolean value that decides to include subfolders
* **Skip**: Number of files in the list to skip, to support pagination
* **Take**: Number of files to include, to support pagination

### **Return value**

The direct command returns an OperationResult that indicates either success or failure, along with the list of files.
