get (FTP command)
Overview
The get command retrieves file content and loads it into the flow as a payload. If multiple files are returned, multiple payloads are generated.
Need to know
Regular expressions are supported when defining files to retrieve with the get command.
Connection settings
When configuring an SFTP connector, two fields should be updated:
FTP command only: get
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?