Creating a Job for listing and getting files/folders on an FTP directory - 7.0

FTP

author
Talend Documentation Team
EnrichVersion
7.0
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Internet components (Integration) > FTP components
Data Quality and Preparation > Third-party systems > Internet components (Integration) > FTP components
Design and Development > Third-party systems > Internet components (Integration) > FTP components
EnrichPlatform
Talend Studio

Create a Job to connect to an FTP server, iterate and list all files and folders on an FTP root directory, then get only text files on the FTP root directory to a local directory, finally close the connection to the server.

Before you begin

Prerequisites: To replicate this scenario, an FTP server must be started and a couple of files/folders must be put onto the root directory of the FTP server.

Procedure

  1. Create a new Job and add a tFTPConnection component, a tFTPFileList component, a tIterateToFlow component, a tLogRow component, a tFTPGet component, and a tFTPClose component by typing their names in the design workspace or dropping them from the Palette.
  2. Link the tFTPFileList component to the tIterateToFlow component using a Row > Iterate connection.
  3. Link the tIterateToFlow component to the tLogRow component using a Row > Main connection.
  4. Link the tFTPConnection component to the tFTPFileList component using a Trigger > OnSubjobOk connection.
  5. Do the same to link the tFTPFileList component to the tFTPGet component, and the tFTPGet component to the tFTPClose component.