tFTPFileExist and run if

Highlighted
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 ?
Highlighted
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
Highlighted
One Star

Re: tFTPFileExist and run if

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

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog