On Fri, 18 Sep 2009, Xu, Qiang (FXSGSC) wrote:

Yes, my compiled sftp command is finished smoothly, but I didn't see anything is copied over. Isn't the comment saying this is to copy something to local path?

Then you need to read the code to see what it does:

    do {
        char mem[1024];

        /* loop until we fail */
        fprintf(stderr, "libssh2_sftp_read()!\n");
        rc = libssh2_sftp_read(sftp_handle, mem, sizeof(mem));
        if (rc > 0) {
            write(1, mem, rc);
        } else {
            break;
        }
    } while (1);

--

 / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to