|Subject:||IdFTPServer: Checking permissions in DELE, MKD etc. and replying with an error code|
|Posted by:||Frank Zavelberg (loc22…@tianet.ath.cx)|
|Date:||Tue, 08 Apr 2008|
I got the following question concerning TIdFTPServer:
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. Thus the
client always gets a "250 Okay" reply, even if I do not delete the file.
Is there a recommended way to perform such checks and return the correct
Thanks a lot in advance for help!