Moving files from remote server

One Star

Moving files from remote server

I have some files on a remote server.
I would want to Move the files (Cut, Paste) to my local server.
How can i achieve that?
One Star

Re: Moving files from remote server

If the remote server supports FTP protocol , you can use the following components of designer´s palette (Internet/FTP) to do the job:
tFtpGet than tFtpDelete.
aski
One Star

Re: Moving files from remote server

I already tried using those components but there is one problem which bugs me.
By the time, GET has finished copying all the files to local directory, there might be a scenario, in which the remote directory is updated with a new file.
If the job now runs DELETE, then all the files will be deleted including the new ones.
I only want to delete the files which i have copied, hence the MOVE operation.
I could not find any component which could help me accomplish this?
Is there any workaround?
Community Manager

Re: Moving files from remote server

Hello umair
After getting the files in a local folder, you can use a tFileList component to iterate this folder and delete the files on server.(see the srceenshot)
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Moving files from remote server

Wow...
Thats Genius Thinking ! Smiley Happy
Thanx a bundle
One Star

Re: Moving files from remote server

Hi!!

Thanks a lot for this topic.
I only replace the file name by a template ("nam*")in both tFTPget an tFileList and now my job can massively transfer files and the delete it.
It's usefull!!!!
Didier
One Star

Re: Moving files from remote server

Hi!!

Thanks a lot for this topic.
I only replace the file name by a template ("nam*")in both tFTPget an tFileList and now my job can massively transfer files and the delete it.
It's usefull!!!!
Didier
One Star

Re: Moving files from remote server

Hi Shong,
I have similar job which you had discussed earlier ,i have kept put component between tFTPfilelist and tFTPdelete to place my file in output folder of diffrent server ,but I am getting the files which already been deleted in source folder along with new files.
please help me out 

Thanks,
Ajay