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

Highlighted
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

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

All Replies
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

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch