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
sftpSftpClientThe SFTP session to use; it stays the caller's to dispose, after the provider is no longer used.
rootstringThe directory on the server, absolute or relative to the login directory (
.for the login directory itself).optionsSftpFileProviderOptionsCaching and timeouts.