Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] File name pattern match

Hello,
I have ajob which, depending on data transformed creates multiple files. My next job checks if any of the files exist and abort if at least one file exists.
I am using tFileExist to check for file name and it works fine. I want to do one check instead of checking for every file. I can include a pattern in file name to lookup multiple files, but I don't see anything in tFileExist component whcih would help me.
Please suggest how to do that in Talend.
Thank you,
Peter.
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hello
You can use the tFilelist component where you are able to set the pattern, eg: *.txt. With the global variable:
((Integer)globalMap.get("tFileList_1_NB_FILE")), you can know if at least one file exists or not.
Best regards
Shong

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hello
You can use the tFilelist component where you are able to set the pattern, eg: *.txt. With the global variable:
((Integer)globalMap.get("tFileList_1_NB_FILE")), you can know if at least one file exists or not.
Best regards
Shong
Anonymous
Not applicable
Author

Thank you, Shong.
That's what I ended up implementing.