Table of Contents

Constructor SftpFileProvider

Namespace
SshSharp.FileProviders
Assembly
SshSharp.FileProviders.dll

SftpFileProvider(SftpClient, string, SftpFileProviderOptions?)

Serves the files under root on the server.

public SftpFileProvider(SftpClient sftp, string root, SftpFileProviderOptions? options = null)

Parameters

sftp SftpClient

The SFTP session to use; it stays the caller's to dispose, after the provider is no longer used.

root string

The directory on the server, absolute or relative to the login directory (. for the login directory itself).

options SftpFileProviderOptions

Caching and timeouts.