One Star

How to FTP Delete once the file is copied?

Hi,
I want to delete the file from the FTP location after getting it.
The file name can be dynamic, which i need to pass to the tFtpDelete for deleting that file.
Could you please tell me how to get the downloaded file name and pass to tFtpDelete?
Thank you
Achyuth
2 REPLIES
One Star

Re: How to FTP Delete once the file is copied?

Hi,
What I would is to connect your tFTPDelete on your tFTPGet
tFTPlist----iterate----tFTPGET-----oncomponentOK-----tFTPDelete
In your filemask put your filename variable ( ((String)globalMap.get("tFTPFileList_1_CURRENT_FILE")) )
One Star

Re: How to FTP Delete once the file is copied?

Does tFTPDelete delete ALL files in source folder or ONLY getted files?