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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
txvincent
Contributor
Contributor

[resolved] Can a tFileCopy component to search for a wildcard filename?

I have a file that has a date appended to the end of it. So in this example, it would be test_20110415.txt. Is it possible for the filename to be a wildcard? The file exists and it should pick it up. Thanks.
I can't attach a picture of the tFileCopy component, but under filename I have: "/u02/test/test_*.txt"
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

I dont think that will work...
try using a tFileList and provide file mask as test_*.txt , then pass this file name fetched by tFileList to u r tFileCopy Component.
(String)globalMap.get("tFileList_1_CURRENT_FILEPATH"); will contain the full path with fileName

View solution in original post

3 Replies
Anonymous
Not applicable

I dont think that will work...
try using a tFileList and provide file mask as test_*.txt , then pass this file name fetched by tFileList to u r tFileCopy Component.
(String)globalMap.get("tFileList_1_CURRENT_FILEPATH"); will contain the full path with fileName
txvincent
Contributor
Contributor
Author

It works! Thanks for your help Ashu.
Anonymous
Not applicable

Hello txvincent,
Thank you for your feedback.
Best,
Pcoffre.