HP3000-L Archives

December 1999, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Damian Coffey <[log in to unmask]>
Reply To:
Damian Coffey <[log in to unmask]>
Date:
Fri, 17 Dec 1999 11:04:52 +1100
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
Lars pointed out to me that it is possible to get an error returned by
RENAME if the file exists, but the file cannot be renamed (priv file,
exclusive access, read-only etc).  So, if using this method, make sure
that you are checking FTPLASTREPLY returns:
550 NONEXISTENT PERMANENT FILE  (FSERR 52)
another error message would indicate that the file exists.

Regards,

Damian.


Damian Coffey wrote:
>
> So, to get around this, try using RENAME instead of DIR:
> RENAME myfile myfile
> If myfile exists, it will be renamed to the same name, and no error will
> be returned, if myfile does not exist an error will be returned.
>
> This should be consistent behaviour across all implementations of FTP.
>

ATOM RSS1 RSS2