Archive Index
This month's Index
|
Subject: Re: How to append to remote file?
Re: How to append to remote file?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 6 Dec 2010 12:13:43 +0100 (CET)
On Wed, 24 Nov 2010, Mark Riordan wrote:
> I tried doing a libssh2_sftp_fstat_ex on the remote file to find its size,
Each FXP_WRITE packet sent to the server includes the offset so there's no
I first tought the difference between WRITE and APPEND would be that APPEND
The write will extend the file if writing beyond the end of the file.
... so I don't really understand what APPEND is good for! ;-)
> At any rate, I eventually tried the LIBSSH2_FXF_APPEND approach and got the
Ah, you mean you don't know _how_ it appended but it worked?
I don't see any specific handling for APPEND in the libssh2 code, so I really
My gut reaction is that we should use APPEND only in the API and instead just
-- / daniel.haxx.se _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2010-12-06 |