Discuss this help topic in SecureBlackbox Forum


TElSftpClient     See also     

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

Sets the attributes for a specified file


    bool SetAttributes(string Path, TElSftpFileAttributes Attributes);

    Function SetAttributes(ByVal Path As String, ByVal Attributes As TElSftpFileAttributes) As Boolean

    function SetAttributes(Path : string; Attributes : TElSftpFileAttributes): Boolean;
    procedure SetAttributesSync(const Path: string; Attributes: TElSftpFileAttributes);

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

    bool SetAttributes(string $Path, TElSftpFileAttributes $Attributes)


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

Return value

    True if operation was completed successfully;
    False otherwise.


    Use this method to set attributes for a specified file. If the attributes were successfully set, the OnSuccess event is fired. The OnError event is fired otherwise.

See also:     SetAttributesByHandle     RequestAttributes    

Discuss this help topic in SecureBlackbox Forum