One Star

[resolved] How to use tFTPFileExist

Can you please attach sample image on how to use tFTPFileexist?
1 ACCEPTED SOLUTION

Accepted Solutions
Community Manager

Re: [resolved] How to use tFTPFileExist

Hi 
tFTPFileExist is used to check if a file exists or not on the FTP server, the return result is stored in a global variable and you can get it via:
(Boolean)globalMap.get("tFTPFileExist_1_EXISTS")

For example:
tFTPFileExist
   |
onsubjobok
   |
tJava
on tJava:
boolean result=(boolean)globalMap.get("tFTPFileExist_1_EXISTS");
if(result==true){
System.out.println("the file exists!");
}else{
System.out.println("the file does not exist!");
}

BR
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
2 REPLIES
Community Manager

Re: [resolved] How to use tFTPFileExist

Hi 
tFTPFileExist is used to check if a file exists or not on the FTP server, the return result is stored in a global variable and you can get it via:
(Boolean)globalMap.get("tFTPFileExist_1_EXISTS")

For example:
tFTPFileExist
   |
onsubjobok
   |
tJava
on tJava:
boolean result=(boolean)globalMap.get("tFTPFileExist_1_EXISTS");
if(result==true){
System.out.println("the file exists!");
}else{
System.out.println("the file does not exist!");
}

BR
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] How to use tFTPFileExist

Thank you for this one.