Discuss this help topic in SecureBlackbox Forum

TElSftpClient.SetAttributes

TElSftpClient     See also     


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


Sets the attributes for a specified file

Declaration

[C#/Java]
    bool SetAttributes(string Path, TElSftpFileAttributes Attributes);

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

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

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

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

Parameters

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

Return value

    True if operation was completed successfully;
    False otherwise.

Description

    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