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?
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.
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.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With