PowerTCP SSH and SFTP for .NET
SetAttributes Method




The absolute or relative (to WorkingDirectory) path of an existing file or directory.
A SftpFileAttributes object. Specifies the modifications to be carried out on the attributes of the file. Empty fields will be ignored.
Modifies the attributes of a file. Used for operations such as changing the ownership, permissions or access times, as well as for truncating a file.
Syntax
'Declaration
 
Public Sub SetAttributes( _
   ByVal path As String, _
   ByVal attributes As SftpFileAttributes _
) 
'Usage
 
Dim instance As Sftp
Dim path As String
Dim attributes As SftpFileAttributes
 
instance.SetAttributes(path, attributes)
public void SetAttributes( 
   string path,
   SftpFileAttributes attributes
)
public: void SetAttributes( 
   string* path,
   SftpFileAttributes* attributes
) 
public:
void SetAttributes( 
   String^ path,
   SftpFileAttributes^ attributes
) 

Parameters

path
The absolute or relative (to WorkingDirectory) path of an existing file or directory.
attributes
A SftpFileAttributes object. Specifies the modifications to be carried out on the attributes of the file. Empty fields will be ignored.
See Also

Reference

Sftp Class
Sftp Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic