type
TScSFTPOpenFileEvent = procedure(Sender: TObject; const FileName: string; const Handle: TScSFTPFileHandle) of object;
property OnOpenFile: TScSFTPOpenFileEvent;
Description
The OnOpenFile event occurs when opening file or directory when executing OpenFile or OpenDirectory methods.
Parameters:
• | Sender - the object that raised the event. |
• | FileName - the name of the file or directory that is being opened. |
• | Handle - the file handle that was received from the server for the file or directory that is being opened. This handle may be used in other operations like ReadFile, WriteFile etc. |
See Also