The get command retrieves file content and loads it into the flow as a payload. If multiple files are returned, multiple payloads are generated.
get
Regular expressions are supported when defining files to retrieve with the get command.
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.
Scenario
The steps
Our process flow is configured as follows:
In this flow, we need to list all files in /myfiles/folderB on the remote server:
/myfiles/folderB
Connector settings
Our SFTP shape is configured as follows:
List all files in the root, which is defined as: /myfiles/folderB/
root
/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 2 months ago
Was this helpful?