cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Renaming files with sftp

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 18 Jul 2007 15:13:19 -0700

On Wed, Jul 18, 2007 at 04:42:15PM -0500, Joe Ebmeier wrote:
> I seem to be having trouble renaming files in the CURLOPT_QUOTE portion of my
> curl request. The following test program is a modified version of http://
> curl.haxx.se/lxr/source/docs/examples/ftpupload.c.
[...]
> static const char buf_1 [] = "RNFR " REMOTE_DIR "/" CURRENT_NAME;
>
> static const char buf_2 [] = "RNTO " REMOTE_DIR "/" NEW_NAME;

These are FTP rename commands, not sftp. The sftp postquote commands are
documented in the curl man page, but admittedly not the curl_easy_setopt
man page. I'll fix that.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-07-19