property OnWriteFile: TScSFTPServerWriteFileEvent;
The OnWriteFile event occurs on request from an SFTP client to write data to the file specified by the Data object.
You can call the DefaultWriteFile method to execute this operation or write your own implementation.
|•||Sender - the object whose event handler is called.|
|•||SFTPSessionInfo - contains the information about the current SFTP session.|
|•||Data - specifies the information about a writing file as the TScHandle object or any user's object. Usually this object is previously returned by the DefaultOpenFile method or the OnOpenFile event handler.|
|•||Offset - the offset in bytes relative to the beginning of the file that the writing started at. This field is ignored if TEXT MODE was specified during the opening.|
|•||Buffer - the sequence of bytes that should be written to the file.|
|•||Count - the number of bytes to write.|
|•||Error - a parameter to pass the information about an error that can arise when writing a file.|