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
2 REPLIES
Four 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.