cURL / Mailing Lists / curl-library / Single Mail


Re: Moving a file to archive

From: Dan Fandrich <>
Date: Thu, 28 Jun 2007 13:56:15 -0700

On Thu, Jun 28, 2007 at 09:59:07PM +0200, Daniel Stenberg wrote:
> On Thu, 28 Jun 2007, Charlie Bursell wrote:
>> 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 think that's because the server doesn't allow you to do that particular
> rename since it would move the file to a different device.

What you could try instead is uploading the file directly to the /ARCHIVE/
directory and renaming it from there.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-06-28