On Mon, 2 May 2011, Mark Roden wrote:
It looks like I'm not able to overwrite the file, despite setting the flags:
LIBSSH2_FXF_WRITE|LIBSSH2_FXF_CREAT|LIBSSH2_FXF_TRUNC
The first time, the writing works, and if I delete the file from the server
using a separate session, then the writing works again.
Are there other flags or things to check so that a file can be overwritten,
some unix permission I'm not setting when the file is initially created?
If the server refuses the operation then so it does, there's not a lot libssh2
can do about to convince that it should do something else. If there would be
permission problems then surely you shouldn't be allowed to remove it either?
I would look into the server logs for clues.
--
/ daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel