How to copy particular folders from a remote FTP

Seven 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!

 

 

Nine Stars

Re: How to copy particular folders from a remote FTP

Seven 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!

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

APIs for Dummies

View this on-demand webinar about APIs....

Watch Now