Disconnect Event
This event is fired when the SFTP subsystem connection is closed.
Syntax
type TDisconnectEvent = procedure ( Sender: TObject; CloseReason: Integer ) of Object;
property OnDisconnect: TDisconnectEvent read FOnDisconnect write FOnDisconnect;
Remarks
Do not perform any file operations after this event has been fired.