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
Root
Path

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

Cover

Our process flow is configured as follows:

Cover

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

The steps

Cover

Connector settings

Our SFTP shape is configured as follows:

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

Cover

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?