Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to iterate a ftp site to browse subdirectories to get files?

Hello,
I'd like to use tFtpGet to retreive many files from a ftp server matching to file mask. However, I have many subdirectories to browse to catch these file.
How can I process to get through subdirectories names and file mask specification in a talend job?
JNB
Labels (2)
4 Replies
_AnonymousUser
Specialist III
Specialist III

Is there a response at this question? im blocked on this to. I'd like to iterate folder and subfolders to catch files an copy them to local machine? It is possible?
Anonymous
Not applicable
Author

I have the same requirement. Anyone figure out how to do this?
Would also really appreciate any summary of how you worked around the need, even if it's not cleanly with a built-in Talend component..
thanks!
Anonymous
Not applicable
Author

Hello,
To iterate the ftp Server, I made a "static" mapping between subdirectories definitions from a file so that I could try to retrieve files according to already known subdirectories.
JNB
Anonymous
Not applicable
Author

you can use tftpfilelist to list the directories on the ftp site and then use another tftpfilelist to go through the directories listed by the first one, I knew there was only 2 levels of dir's to do. Its not great but it worked.
However I would think you could put it into a loop to recursively go through an unlimited number of dir's, probably only using 1 tftpfilelist component.