cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Ftping a file and renaming the file at the remote server

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 11 Jul 2005 23:35:10 +0200 (CEST)

On Mon, 11 Jul 2005, VeeraraghJ_at_usa.redcross.org wrote:

>> RENAME $file TEST_FILE.txt
> < 500 illegal command

...

> I tried to even use -Q '-ls' even that failed..

Right, since neither "RENAME" nor "ls" are valid FTP commands.

Try this reference: http://curl.haxx.se/rfc/rfc0959.txt

Rename is done with RNFR and RNTO, while "ls" is not at all possible to do
using the quote approach.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-07-11