list (FTP command)
Last updated
Was this helpful?
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).
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.
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.

Our process flow is configured as follows:


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


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?
Was this helpful?