Five Stars

How to copy particular folders from a remote FTP

I need to copy folders and files from a remote FTP. I used tFTPGet to do it.

 

Here are the folders on the server:

Grocery -001

Bakery -002

Deli-003

Frozen-004

Other
batch-script

 

Is there a way I can copy only the Grocery, Bakery,  Deli, Frozen folders from FTP? I don't want to have the folder "Other" & "batch-script" copied.

 

Thanks!

 

 

2 REPLIES
Eight Stars

Re: How to copy particular folders from a remote FTP

Five Stars

Re: How to copy particular folders from a remote FTP

Hi iamabhishek,

 

I see you posted a solution in the link below to use Java code to filter out the files that one doesn't want to process in the subsequent steps.

https://community.talend.com/t5/Design-and-Development/Exclude-File-Mask-in-TFTPFileList/td-p/124806

 

Can we use Java code to filter out the FOLDERS that we don't want to process in the subsequent steps?

If we can, what would the code be like?

 

Thanks!