FTP delete after ftpget?

FTP delete after ftpget?

Hi all,
How can I use ftpdelete correctly?
I have:
FtpConnection -> FTPFilelist -> FTPGet.
After this I want to delete the file that was "get".
And I want to continue working locally afterwards.
I have 12 ftpservers that I want to connect to in parallel and copy the files over and delete them on the server.
After that I want to thread all the files at the same time.
So 1 want 1 job with an ftpdelete after the get and this 12 times so I can try to run them all in parallel with multithreadexecution.
And this subjob once completed -> load the files to the DB.
Seventeen Stars

Re: FTP delete after ftpget?

tFtpConnection -> tFTPFilelist -> tFTPGet -> tFTPDelete (using the same filename as in tFTPGet)
Or do I miss something here?
One Star

Re: FTP delete after ftpget?

is it possible to delete a file after the get was done and the result was ok? my experience with FTP is that sometimes files cannot be retreived due to whatever reason.  do you need to Iterate between tFTPGet_1 and tFTPDelete_1? I am getting my files in tFTPGet_1 with ((String)globalMap.get("tFTPFileList_1_CURRENT_FILEPATH"))
Four Stars

Re: FTP delete after ftpget?

I would not recommend or believe on Ok from ftpget. After download, get the property of downloaded file as well as the property of file on ftp server. If the comparison is ok, then you can delete.
https://help.talend.com/search/all?query=tFTPFileProperties&content-lang=en
Vaibhav
Seventeen Stars

Re: FTP delete after ftpget?

hi ,
as far as I know you cannot pass 2 different commands in the same request.
As sanvaibhav said , you get first ans delete after (2 cdifferents commant through ftp protocol)

regards
laurent