ftp to ftp

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
 
M

Martin H.

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
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top