Re: FTP Server - how do I disallow changing directory? FTPBaseFileSystem sends

Giganews Newsgroups
Subject: Re: FTP Server - how do I disallow changing directory? FTPBaseFileSystem sends
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Tue, 7 Dec 2004

"TJ Nannon" <in…@cheddar.mailworks.org> wrote in message
news:opsinbmxs1os4j…@necco.rrinc.com...

> 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
non-existent
> file, but for the change-dir case, Indy always returns "200", a generic
success
> 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.

Gambit

Replies

In response to

FTP Server - how do I disallow changing directory? FTPBaseFileSystem sends '200 posted by TJ Nannon on Tue, 07 Dec 2004