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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tricloudnexus.io/edge/nexus-modules/data-connector-modules/filetransfermodule/direct-commands/ftplist.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
