> For the complete documentation index, see [llms.txt](https://docs.tricloudnexus.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tricloudnexus.io/edge/nexus-modules/data-connector-modules/filetransfermodule/direct-commands/ftplist.md).

# 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.
