Discuss this help topic in SecureBlackbox Forum


TElSimpleSFTPClient     See also     

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

Sets the attributes for a specified file


    void SetAttributes(string Path, TElSftpFileAttributes Attributes);

    Sub SetAttributes(ByVal Path As String, ByVal Attributes As TElSftpFileAttributes)

    procedure SetAttributes(const Path: string; Attributes: TElSftpFileAttributes);

    void SetAttributes(const std::string &Path, TElSftpFileAttributes &Attributes);
    void SetAttributes(const std::string &Path, TElSftpFileAttributes *Attributes);

    void SetAttributes(string $Path, TElSftpFileAttributes $Attributes)

    void setAttributes(String Path, TElSftpFileAttributes Attributes);


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


    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