Method GetAttributesAsync
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
pathstringfollowSymbolicLinksboolcancellationTokenCancellationToken
Returns
Exceptions
- SftpException
The path does not exist (NoSuchFile), or another error.