Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use tFileExist component in Talend?

Tags:

talend

Using Talend, I want to verify if there is a file named ListePS.xls in my D:/ to do some treatment else nothing.

How do I check if file exists in Talend?

like image 388
user1805523 Avatar asked Jan 22 '13 10:01

user1805523


People also ask

How do I load components in Talend?

In Talend Studio, click Window in the toolbar, then Preferences > Talend > Component. Browse to the dedicated component directory where you store all your custom components. Click OK. Talend Studio will reload all the components including the custom components.

How do I delete a File in Talend?

Select this check box to display the Directory field, where you can indicate the path the folder to be deleted. Select this check box to display the File or directory to delete field, where you can indicate the path to the file or to the folder you want to delete.


1 Answers

you must use the component tFileExist with two outputs IF:

 ((Boolean) globalMap.get ("tFileExist_1_EXISTS")) for the case 1(File existence)
 ! ((Boolean) globalMap.get ("tFileExist_1_EXISTS")) for case 2 (non-existence of file)
like image 68
amine ameur Avatar answered Sep 24 '22 03:09

amine ameur