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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] How do I: Poll directory, when file found, pass fund onto new compennt

Morning,
I'm trying to use components for a routine that polls a directory and if a new file is created in that directory, moves the file to another component, then rename the file. The file names are not fixed and have different names and file extensions. How do I put this file name into a variable.
Thanks.
O
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi
There already exists a official component called tWaitForFile in Talend Studio, this component is used to monitor a directory and trigger a next action based on the event you choose, and there have been some global variables available in this component, includes the global variable that stores the file name, please refer to the component manual.
https://help.talend.com/search/all?query=tWaitForFile&content-lang=en
Let me know if you have troubles to use this component or it does not address your request.
Shong

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Hi
There already exists a official component called tWaitForFile in Talend Studio, this component is used to monitor a directory and trigger a next action based on the event you choose, and there have been some global variables available in this component, includes the global variable that stores the file name, please refer to the component manual.
https://help.talend.com/search/all?query=tWaitForFile&content-lang=en
Let me know if you have troubles to use this component or it does not address your request.
Shong