Move/Copy Files using a wildcard filemask list.

Six Stars

Move/Copy Files using a wildcard filemask list.

Hi All

 

I'm trying to create a job which moves files from one folder to another when the matching 3 letter codes exist in the filename.

 

  1. Using a list of values in a CSV file in column A e.g
    1. TLC
    2. BET
    3. TLY
    4. CDR
    5. PLC
  2. The job moves files containing these 3 letter codes from One Folder to another.

I can get a job working by manually typing in the codes tFlileList's mask function, although i need it to be dynamic as the list of codes is very large and will update over time.

 

Current Setup is

1.tFileList from directory

2. Iterate to tCopyFile

3. tDeleteFile then cleans up the existing files one copy is finished.

 

Any ideas?

 

Cheers

 

dv


Accepted Solutions
Six Stars

Re: Move/Copy Files using a wildcard filemask list.

Hi All,

 

I managed to work it out. I created a tMap with output(out1), then passed it via a tFlowToIterate. From there I set iterate to the tFileList and set the mask to "*"+out1.Code+"*"

 

Have attached pictures.

Capture.PNG

code.PNG

 

 

View solution in original post


All Replies
Six Stars

Re: Move/Copy Files using a wildcard filemask list.

Hi All,

 

I managed to work it out. I created a tMap with output(out1), then passed it via a tFlowToIterate. From there I set iterate to the tFileList and set the mask to "*"+out1.Code+"*"

 

Have attached pictures.

Capture.PNG

code.PNG

 

 

View solution in original post

2019 GARTNER 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

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog