Indy 9
TOnRenameFileEvent
Unit: IdFTPServer
Event type signalled to allow an FTP server to rename a file.
TOnRenameFileEvent = procedure (ASender: TIdFTPServerThread; const ARenameFromFile,ARenameToFile: string) of object;
Unit
IdFTPServer
Parameters
ARenameFromFile
Orignal filename.
ARenameToFile
New file name.
ASender
Threaded client connection for the event notification.
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.


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