Discuss this help topic in SecureBlackbox Forum


TElSimpleSFTPClient     See also     

Filter: C#  VB.NET  Pascal  C++  PHP  Java  

Sets the attributes for the specified opened file


    void SetAttributesByHandle(byte[] Handle, TElSftpFileAttributes Attributes);

    Sub SetAttributesByHandle(ByVal Handle As Byte(), ByVal Attributes As TElSftpFileAttributes)

    function SetAttributesByHandle(const Handle: TSBSftpFileHandle; Attributes: TElSftpFileAttributes):Boolean;
    procedure SetAttributesByHandleSync(const Handle: TSBSftpFileHandle; Attributes: TElSftpFileAttributes);
    type TSBSftpFileHandle = ByteArray;

    void SetAttributesByHandle(const std::vector<uint8_t> &Handle, TElSftpFileAttributes &Attributes);
    void SetAttributesByHandle(const std::vector<uint8_t> &Handle, TElSftpFileAttributes *Attributes);

    void SetAttributesByHandle(array of byte|string|NULL $Handle, TElSftpFileAttributes $Attributes)

    void setAttributesByHandle(byte[] Handle, TElSftpFileAttributes Attributes);


  • Handle - handle of the open file
  • Attributes - specifies the new attributes for a file

Return value

    Returns True if the operation was completed successfully, and False otherwise.


    Use this method to set the attributes for the specified opened file. You need to set the attributes via the Attributes parameter. You also have to adjust the Attributes.IncludedAttributes property.
    In case of error, EElSFTPError exception containing the SFTP error code, is raised. For more information on error handling, please read the corresponding how-to article.

See also:     SetAttributes     RequestAttributes    

Discuss this help topic in SecureBlackbox Forum