One Star

tFTPFileExist and run if

Hello
I wish to use the tFTPFileExist component for testing the presence of a file on a ftp before trying to download it.
I found on this board how to know the number of files downloaded with the tFTPGet component ( ((Integer)globalMap.get("tFTPGet_2_NB_FILE")).equals(1) ) but I don't know how to write the condition with the tFTPFileExist, I didn't find the variable who tell us if the component found the file or not.
Is their a documentation with the "variables" (NB_FILE, ...) of this sort of component ?
2 REPLIES
Community Manager

Re: tFTPFileExist and run if

Hello
Use the global variable: (boolean)globalMap.get("tFTPFileExist_1_EXISTS"). In any text field, press CTRL+blank space, you will see a list of global variables.
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: tFTPFileExist and run if

Thanks, it works.
It'll be easier the next time with the "ctrl + blank space"