ftp to ftp

  • Thread starter Thread starter Grey
  • Start date Start date
G

Grey

my requierment is first download file from one ftp server and then upload to
another ftp server
1) how do i know when the files finish the downloading, before i start the
file upload to other server
 
Hello Grey,

AFAIK FTP servers can provide the file size. You would then just get the
file size from the server and then check how much you have downloaded
already.

But I wonder: Why not download the file directly from the second server
(e.g. with wget), then you don't have to upload it?

Best regards

Martin
 
Grey said:
my requierment is first download file from one ftp server and then upload to
another ftp server
1) how do i know when the files finish the downloading, before i start the
file upload to other server

If you use a synchronous method, the method returns when the download is
complete.

If you use an ansynchronous method, there is a callback that you can use
to get a notification when the download is complete.
 
Back
Top