Indy 9
TOnFileEvent
Unit: IdFTPServer
Event type triggered when deleting a file on the FTP server.
TOnFileEvent = procedure (ASender: TIdFTPServerThread; const APathName: string) of object;
Unit
IdFTPServer
Parameters
AFilename
File to be removed from the local file system.
ASender
Client connection generating the event notification.
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.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.