Internet Direct (Indy) Version 9.0.2 Beta
TOnRenameFileEvent
Event type signalled to allow an FTP server to rename a file.

TOnRenameFileEvent = procedure (ASender: TIdFTPServerThread; ARenameFromFile, ARenameToFile: string) of object;
Description
TOnRenameFileEvent is an event type signalled when an FTP server implementation needs to rename a file on the local file system, after receiving both the FTP RNFR and RNTO command verbs from a client connection.

TOnRenameFileEvent is the event type signalled to the TIdFTPServer.OnRenameFile event handler. TOnRenameFileEvent informs the server that it needs to perform the platform-specific API function calls needed to rename the file specified in ARenameFromFile to the name specified in ARenameToFile.

Applications must assign a procedure to the event handler for the TOnRenameFileEvent to allow responding to the event notification.