Discuss this help topic in SecureBlackbox Forum

TElSimpleSFTPClient.SetAttributes

TElSimpleSFTPClient     See also     


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


Sets the attributes for a specified file

Declaration

[C#]
    void SetAttributes(string Path, TElSftpFileAttributes Attributes);

[VB.NET]
    Sub SetAttributes(ByVal Path As String, ByVal Attributes As TElSftpFileAttributes)

[Pascal]
    procedure SetAttributes(const Path : string; Attributes : TElSftpFileAttributes);

[C++]
    void SetAttributes(const std::string &Path, TElSftpFileAttributes &Attributes);
    void SetAttributes(const std::string &Path, TElSftpFileAttributes *Attributes);

[PHP]
    void SetAttributes(string $Path, TElSftpFileAttributes $Attributes)

[Java]
    void setAttributes(String Path, TElSftpFileAttributes Attributes);

Parameters

  • Path - path to file
  • Attributes - specifies the new attributes for a file

Description

    Use this method to set attributes for a specified file or directory. You need to set the attributes via various properties of Attributes parameter, also you need to adjust Attributes.IncludedAttributes property to specify attributes which you need to set.


    In case of error, EElSFTPError exception containing SFTP error code, is raised. For more information on error handling, please read the corresponding how-to article.

See also:     SetAttributesByHandle     RequestAttributes    

Discuss this help topic in SecureBlackbox Forum