type
TScSFTPServerRemoveFileEvent = procedure(Sender: TObject; SFTPSessionInfo: TScSFTPSessionInfo; const FileName: string; var Error: TScSFTPError) of object;
property OnRemoveFile: TScSFTPServerRemoveFileEvent;
Description
The OnRemoveFile event occurs on request from an SFTP client to remove a file.
You can call the DefaultRemoveFile method to execute this operation or write your own implementation.
Parameters:
• | Sender - the object whose event handler is called. |
• | SFTPSessionInfo - contains the information about the current SFTP session. |
• | FileName - specifies the name of the file to be removed. To get an absolute file path, use the GetFullPath method. |
• | Error - a parameter to pass the information about an error that can arise when removing a file. |
See also