curl-library
RE: SFTP "File already completely downloaded" but the file is empty
Date: Wed, 13 Jun 2012 10:12:10 +0000
Many thanks for you quickly reply. As the file I try to download is not empty, I have to redirect my research to libssh2.
Do you think I can believe to get an answer from the libssh2 Team ?
For me, you can close my request to libcurl development.
Hafed
-----Message d'origine-----
De : curl-library-bounces_at_cool.haxx.se [mailto:curl-library-bounces_at_cool.haxx.se] De la part de Daniel Stenberg
Envoyé : mercredi 13 juin 2012 00:41
À : libcurl development
Objet : RE: SFTP "File already completely downloaded" but the file is empty
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 ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-06-13