Table of Contents

Method GetFileSystemInfoAsync

Namespace
SshSharp.Sftp
Assembly
SshSharp.dll

GetFileSystemInfoAsync(string, CancellationToken)

The size and free space of the file system that holds path, as df shows them (statvfs@openssh.com).

public Task<SftpFileSystemInfo> GetFileSystemInfoAsync(string path, CancellationToken cancellationToken = default)

Parameters

path string
cancellationToken CancellationToken

Returns

Task<SftpFileSystemInfo>

Exceptions

NotSupportedException

The server lacks statvfs@openssh.com.