[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

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads