Get all files (in several directories) from FTP

One Star

Get all files (in several directories) from FTP

Hi,
There are many FTP components to extract files. What should I use if I have a root Directory, with some sub-directories and several files in all of them, and I want to extract all files?
For example:
rootDirectory
- file1.txt
- file2.txt
- file3.txt
- subDirectory1
- file4.txt
- file5.txt
- subDirectory2
- file6.txt
- subDirectory2
- file7.txt
- file8.txt
How can I get files 1 to 8, just by giving the component the path to the rootDirectory?
Thanks
Six Stars

Re: Get all files (in several directories) from FTP

In the tFTPGet component, give remote directory as your root directory.
Then in the Filemask field, enter "*".
This will download all files and directories (and files and sub directories in them) from your root directory.
You will get all the files, but they will be in the same directory structure, as they were in the FTP.
One Star

Re: Get all files (in several directories) from FTP

Hi,
I had a requirement like yours and used this process:

In the tForEach component value, enter the name of the directories that you want to extract.

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch