Amogh Natu

Amogh Natu

  • NA
  • 700
  • 323.5k

Move files between folders in FTP with different credentials

Aug 3 2014 10:48 AM
I'm working on a scenario wherein I need to move some files from one FTP location to another. The FTP server is the same but credentials for the source and destination are different.
For example,
I need to copy files
FROM
"ftp://sampleftp.com/sourceFolder" with login credentials "User1", "Password1"
TO
"ftp://sampleftp.com/destinationFolder" with login credentials "user2","password_2"
Kindly note the different credentials I have used above for source and destination.
I referred to this similar stackoverflow question link but that seems to work for the FTP folder with constant login credentials.
Can someone please guide me on how best can I implement this?
Thanks a lot! 

Answers (4)