> 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/ftpdirectory.md).

# FtpDirectory

Calling this method downloads a blob into blob storage.

### **Method Name:**

FtpDirectory

### **Payload:**

The direct command requires a sas uri to download from.

* **FtpConfigName**: Name of the FTP configuration to use, as specified in the module twin
* **FtpDirectoryPath**: Directory where the FTP operation is executed.
* **RenameFromFtpDirectoryPath**: If command is RenameDirectory, this value renames the directory.
* **FtpDirectoryCommand**: Command to execute. Possible values are CreateDirectory, DeleteDirectory and RenameDirectory.

```
{
    "ftpConfigName": "ftpconfig1",
    "ftpDirectoryPath": "home/Directory",
    "renameFromFtpDirectoryPath": "NewDirectoryName",
    "ftpDirectoryCommand": "RenameDirectory"
}
```

### **Return value**

The direct command returns an OperationResult that indicates either success or failure.
