list (FTP command)
Overview
The list command lists files in a given directory. The listing is loaded into the flow as a payload (where each filename is listed in an array).
Need to know
Regular expressions are not supported for the list command - it should only be used to list all files in a given directory. If you need to work with a specific group of files, you may find the get command useful.
Connection settings
When configuring an SFTP connector, two fields should be updated:
FTP command only: list
The root to the directory you want to list. Since there is no specific file to consider, the full path to the directory will be the root.
Not required.
Example
Scenario

Our process flow is configured as follows:


In this flow, we need to list all files in /myfiles/folderB on the remote server:

The steps

Connector settings
Our SFTP shape is configured as follows:

List all files in the
root, which is defined as:/myfiles/folderB/

On our remote server, all files in /myfiles/folderB/ are loaded into the flow as a payload, with files in an array:

Last updated
Was this helpful?