SFTP - List directory
The SFTP - List directory action lists a directory from an SFTP server.
You must create the SFTP server connection details beforehand on the SFTP Connections window on the Extension Kit Portal.
Action input
| Field | Description | Required |
|---|---|---|
| Connection name | Choose the SFTP server connection from the drop-down. The list operation will be performed using the server details and credentials set on the connection chosen. | Yes |
| Folder path | Enter, or select from the Suggestions drop-down, the path to the desired folder. | Yes |
| List recursively | Select to perform the list operation on subfolders recursively. If not selected, only the first level of the Folder path will be listed. | No |

Action output
| Property | Description | |
|---|---|---|
| Files | A collection of files or folders from the SFTP server. Each entry contains the following properties: | |
| Name | The name of the file/folder. | |
| Path | The full path to the file/folder. | |
| MediaType | The content type inferred from the file extension. Empty for folders. | |
| LastModified | The last time the file/folder was modified. | |
| Size | The file size in bytes. Zero for folders. | |
| IsFolder | Whether the entry is a file or a folder. |
