TScSFTPServerSetAttributesEvent = procedure(Sender: TObject; SFTPSessionInfo: TScSFTPSessionInfo; const Path: string; Attributes: TScSFTPFileAttributes; var Error: TScSFTPError) of object;


property OnSetAttributes: TScSFTPServerSetAttributesEvent;



The OnSetAttributes event occurs on request from an SFTP client to set the attributes for a named file.

You can call the DefaultSetAttributes 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.
Path - the file system object (e.g. file or directory) whose attributes are to be modified. If this object does not exist, or the user does not have sufficient access to write the attributes, an event handler should return an error. To get an absolute file path, use the GetFullPath method.
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


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