Internet Direct (Indy) Version 9.0.1 Beta
TIdFTPServer.OnRenameFile
Allows the server to rename a file in the server file system.

property OnRenameFile: TOnRenameFileEvent;
Description
OnRenameFile is a TOnRenameFileEvent property that represents the event handler signalled when the FTP server needs to rename a file on the server file system.

OnRenameFile is examined in the command event handler for the FTP RNFR command verb, and indicates that file renaming can be performed for the FTP server implementation. OnRenameFile is triggered when the command event handler for the FTP RNTO command verb is executed.

OnRenameFile allows the server to peform the platform-specific API calls need to rename the file. ARenameFromFile indicates the orginal file name in the server file system. ARenameToFile indicates the new file name in the server file system.

An FTP server implementation must assign a procedure to the event handler to allow responding to the event notification.