Download From FTP
Description
The Download From FTP activity allows you to retrieve files from a specified directory on an FTP server. You can apply filters based on filenames, date ranges, and retrieve only files from specific periods such as today or yesterday. After downloading, the activity can optionally delete or move the files on the FTP server to prevent reprocessing.
This is useful in automated workflows for ingesting periodic reports, logs, or any files generated and uploaded to FTP locations by external systems.
Use case: Automatically download
.csv
reports from a/daily-reports/
directory each morning and move them to/archived/
after successful processing.
Input
Not Applicable
Output
Output Type | Format | Description |
---|---|---|
Files | Binary | Files downloaded from the FTP server |
Configuration Fields
Field Name | Required | Description |
---|---|---|
Connection | Yes | FTP connection configuration including host, username, and password. |
Working Directory | Yes | Path to the remote directory from which files will be downloaded. |
RegEx | No | Optional regex pattern to filter files (e.g., .*\.csv$ ). |
Files for | Yes | Time filter for retrieving files. Options: All, Today, Yesterday, Today and Yesterday, Date Range. |
Start Date | Conditional | Start date (used only when “Date Range” is selected). |
End Date | Conditional | End date (used only when “Date Range” is selected). |
Delete After Download | No | If enabled, deletes the file from the FTP server after successful download. |
Move After Download | No | If enabled (and deletion is disabled), moves the file to another folder on the server. |
Move Directory | Conditional | Destination folder path for moved files (only shown when moving is enabled). |
Sample Input
Not Applicable
Sample Configuration
Field | Value |
---|---|
Connection | FTP - Client Reports |
Working Directory | /uploads/2025/july |
RegEx | .*\.csv$ |
Files for | Today and Yesterday |
Delete After Download | false |
Move After Download | true |
Move Directory | /uploads/2025/july/archived |
Sample Output
Files successfully retrieved from the FTP server:
Remote File Name | File Name | Size | Status |
---|---|---|---|
report_2025-07-09.csv | report_2025-07-09.csv | 2MB | Downloaded |
report_2025-07-10.csv | report_2025-07-10.csv | 2.1MB | Downloaded |