cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

RE: SFTP "File already completely downloaded" but the file is empty

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 13 Jun 2012 00:41:00 +0200 (CEST)

On Tue, 12 Jun 2012, NEDJARI Hafed wrote:

> * File already completely downloaded

... this originates from this source code:

     /* Setup the actual download */
     if(data->req.size == 0) {
       /* no data to transfer */
       Curl_setup_transfer(conn, -1, -1, FALSE, NULL, -1, NULL);
       infof(data, "File already completely downloaded\n");
       state(conn, SSH_STOP);
       break;
     }

It looks like libssh2_sftp_stat_ex() returned and said the file size is zero
bytes... I suggest you research that a bit closer.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-06-13

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET