Re: IdFTPServer: Checking permissions in DELE, MKD etc. and replying with an error code

Giganews Newsgroups
Subject: Re: IdFTPServer: Checking permissions in DELE, MKD etc. and replying with an error code
Posted by:  Remy Lebeau \(TeamB\) (no.spam@no.spam.com)
Date: Tue, 8 Apr 2008

"Frank Zavelberg" <loc22…@tianet.ath.cx> wrote in message
news:op.t9aq6tfp0ki5…@antares.lan...

> I'd like to perform permission checks in e.g. the DELE
> command (is user xyz allowed to delete file abc), but it
> seems there is no "permission granted, file deleted" reply
> parameter in the OnDeleteFile event.

Raise an Exception.  The Message you specify for it will be passed back to
the client as a 550 reply.

Gambit

Replies

None

In response to

IdFTPServer: Checking permissions in DELE, MKD etc. and replying with an error code posted by Frank Zavelberg on Tue, 08 Apr 2008