In this scenario job, you will specify a folder in remote machine , so the job will connect via FTP and get all the files under this folder.
retrieves files and /or folders based on a defined filemask pattern and iterates on each of them by connecting to a remote directory via an FTP protocol.
iterates on files and/or folders of a given directory on a remote host.
Here is the output of the job :
Starting job ParseRemoteFolderAnddownloadFilesViaFTP at 21:22 28/01/2016.
[statistics] connecting to socket on port 3836
Loading file : .
Loading file : ..
Loading file : TestFiles2
Loading file : filestest1
Job ParseRemoteFolderAnddownloadFilesViaFTP ended at 21:22 28/01/2016. [exit code=0]
The job list all the files under the folder , then download them in the order shown in the distant machine.
Talend Job : List remote folder files and download them via FTP
This job is developed on Talend 6
Java : JDK version 8