|Subject:||Re: FTP Server - how do I disallow changing directory? FTPBaseFileSystem sends|
|Posted by:||Remy Lebeau (TeamB) (firstname.lastname@example.org)|
|Date:||Tue, 7 Dec 2004|
"TJ Nannon" <in…@cheddar.mailworks.org> wrote in message
> In my ChangeDir() handler in my derivative of FTPBaseFileSystem, I
> want to handle an attempt to change-directory into a non-existent dir,
> with an error like 550. This works for an attempt to retrieve a
> file, but for the change-dir case, Indy always returns "200", a generic
> case, when I throw an exception. I've tried many different exceptions...
What is the value of the ExceptionReply.NumericCode property for the "CWD"
and "CDUP" command handlers, and for the TIdFTPServer itself? What you
describe can only happen if one of them is set to 200 instead of 550.
FTP Server - how do I disallow changing directory? FTPBaseFileSystem sends '200 posted by TJ Nannon on Tue, 07 Dec 2004