PowerTCP SSH and SFTP for .NET
GetAttributes Method




The absolute or relative (to WorkingDirectory) path of the file or directory.
If true, the SFTP stat command is used (which follows links), otherwise the SFTP lstat command is used (which return attributes of the link itself).
Gets the file attributes of a file. This method follows symbolic links on the server.
Syntax
'Declaration
 
Public Function GetAttributes( _
   ByVal path As String, _
   ByVal followLink As Boolean _
) As SftpFileAttributes
'Usage
 
Dim instance As Sftp
Dim path As String
Dim followLink As Boolean
Dim value As SftpFileAttributes
 
value = instance.GetAttributes(path, followLink)
public SftpFileAttributes GetAttributes( 
   string path,
   bool followLink
)
public: SftpFileAttributes* GetAttributes( 
   string* path,
   bool followLink
) 
public:
SftpFileAttributes^ GetAttributes( 
   String^ path,
   bool followLink
) 

Parameters

path
The absolute or relative (to WorkingDirectory) path of the file or directory.
followLink
If true, the SFTP stat command is used (which follows links), otherwise the SFTP lstat command is used (which return attributes of the link itself).

Return Value

An SftpFileAttributes object.
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