tGSGet by pattern

Highlighted
Two Stars

tGSGet by pattern

HI all!

Can anybody share his experience, I Have the next case:

need to download a file from GS by pattern ex: (novem_1*.txt) if there are a batch of files with different formats.

 

For now, I have next solution

tGSGet (with prefix) -> itFileList (file mask "*.txt") -> tFileCopy ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) 

 

So, only in this way, I found how to download all ".txt" files from the bucket.

 

But it is not the best way if I have 1000 file and only  5 in "txt" format

Is it possible to filter it before I do tGSGet?

 

Moderator

Re: tGSGet by pattern

Hello,

What does your key prefix in tGSGet component look like? Could you please post the tGSGet component setting screenshot on forum?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

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

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now