Table of Contents

Method GetAttributesAsync

Namespace
SshSharp.Sftp
Assembly
SshSharp.dll

GetAttributesAsync(string, bool, CancellationToken)

The attributes of path; of the link itself when followSymbolicLinks is false.

public Task<SftpFileAttributes> GetAttributesAsync(string path, bool followSymbolicLinks = true, CancellationToken cancellationToken = default)

Parameters

path string
followSymbolicLinks bool
cancellationToken CancellationToken

Returns

Task<SftpFileAttributes>

Exceptions

SftpException

The path does not exist (NoSuchFile), or another error.