cURL / Mailing Lists / curl-library / Single Mail

curl-library

Moving a file to archive

From: Charlie Bursell <charlie.Bursell_at_quovadx.com>
Date: Thu, 28 Jun 2007 13:12:24 -0600

I have followed the example to move (rename) a file outlined at
http://curl.haxx.se/lxr/source/docs/examples/ftpupload.c

This works fine. But if I try to move to another directory, I get the
error: 550 rename: Cannot link to a file on another device.

My postquote looks like: "RNFR foo.txt" "RNTO /ARCHIVE/foo.txt.20070628"

If I change the postquote to: RNFR foo.txt" "RNTO foo.txt.20070628"
As I said above it works fine

I have tried making the destination look like /%2fARCHIVE... and
//ARCHIVE..

But still cannot rename to a different directory

Is this possible?
Received on 2007-06-28