Internet Direct (Indy) Version 9.0.1 Beta
TOnFileEvent
Event type triggered when deleting a file on the FTP server.

TOnFileEvent = procedure (ASender: TIdFTPServerThread; AFilename: String) of object;
Description
TOnFileEvent is an event type triggered when an FTP server needs to delete a file on the local file system at the request of a client connection.

ASender is the thread client connection generating the event notification. AFilename is the file on the local file system to be removed.

TOnFileEvent is the event type signalled to the TIdFTPServer.OnDeleteFile event handler during execution of the command event handler for the FTP DELE command verb. The FTP server implementation must assign a procedure to the event handler to allow responding to the event notification.

Note: The event handler is responsible for calling the Operating System and platform-specific API function(s) needed to physically remove the file indicated in AFilename.