type

TScSFTPServerSetAttributesByHandleEvent = procedure(Sender: TObject; SFTPSessionInfo: TScSFTPSessionInfo; Data: TObject; Attributes: TScSFTPFileAttributes; var Error: TScSFTPError) of object;

 

property OnSetAttributesByHandle: TScSFTPServerSetAttributesByHandleEvent;

 

Description

The OnSetAttributesByHandle event occurs on request from an SFTP client to set the attributes for a file specified by the Data object.

You can call the DefaultSetAttributesByHandle 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 modifying file or directory as the TScHandle or TScSearchRec object or any user's object. Usually this object is previously returned by the DefaultOpenFile or DefaultOpenDirectory methods, or the OnOpenFile or OnOpenDirectory event handlers.
Attributes - an object, that specifies the modified attributes to be applied.
Error - a parameter to pass the information about an error that can arise when setting file attributes.

 

See also

DefaultSetAttributesByHandle

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