One Star

[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
1 ACCEPTED SOLUTION

Accepted Solutions
Community Manager

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

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
----------------------------------------------------------
Talend | Data Agility for Modern Business
1 REPLY
Community Manager

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

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
----------------------------------------------------------
Talend | Data Agility for Modern Business