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
2 REPLIES
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.