Exclude directories in tFileList

One Star

Exclude directories in tFileList

In the tFileList component there is an option to exclude some files using regex expressions. Is there a way to do this for directories.
Say I have a Directory called MyDirectories which has 3 other directories inside of it (Accepted, Rejected, & Others) . All the directories have a .txt file in them . How can I setup tFileList to exclude the .txt file in the Rejected Directory and only pick the .txt files in Accepted & Others directories.
 
Note: My Starting Directory is MyDirectories and I have checked the include subdirectories option.
MyDirectories
     Accepted
                  a.txt 
    Rejected
                 b.txt
    Others
                c.txt
Four Stars

Re: Exclude directories in tFileList

Princewill,
Below design of the job will help you to get an idea of your requirement.

First Input component will have the path of the Accept and Other directory.
Moderator

Re: Exclude directories in tFileList

Hi,
Please take a look at a related forum:https://www.talendforge.org/forum/viewtopic.php?id=48546
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.

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

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch