type

TScSFTPServerWriteFileEvent = procedure(Sender: TObject; SFTPSessionInfo: TScSFTPSessionInfo; Data: TObject; Offset: Int64; const Buffer: TBytes; Count: integer; var Error: TScSFTPError) of object;

 

property OnWriteFile: TScSFTPServerWriteFileEvent;

 

Description

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.

 

Parameters:

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.

 

See also

DefaultWriteFile

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support