C# Class CSharpUtils.VirtualFileSystem.Ssh.SftpFileSystem

Inheritance: RemoteFileSystem
Mostrar archivo Open project: soywiz/csharputils Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Connect ( string Host, int Port, string Username, string Password, int timeout = 10000 ) : void
DownloadFile ( String RemoteFile, String LocalFile = null ) : String
EnsureConnect ( ) : RemoteFileSystem
SftpFileSystem ( ) : System
SftpFileSystem ( string Host, int Port, string Username, string Password, int timeout = 10000 ) : System
Shutdown ( ) : void
UploadFile ( String RemoteFile, String LocalFile ) : void

Protected Methods

Method Description
ImplFindFiles ( String Path ) : IEnumerable
ImplGetFileInfo ( String Path ) : FileSystemEntry
RealPath ( String Path ) : String
_Connect ( ) : void

Method Details

Connect() public method

public Connect ( string Host, int Port, string Username, string Password, int timeout = 10000 ) : void
Host string
Port int
Username string
Password string
timeout int
return void

DownloadFile() public method

public DownloadFile ( String RemoteFile, String LocalFile = null ) : String
RemoteFile String
LocalFile String
return String

EnsureConnect() public method

public EnsureConnect ( ) : RemoteFileSystem
return RemoteFileSystem

ImplFindFiles() protected method

protected ImplFindFiles ( String Path ) : IEnumerable
Path String
return IEnumerable

ImplGetFileInfo() protected method

protected ImplGetFileInfo ( String Path ) : FileSystemEntry
Path String
return FileSystemEntry

RealPath() protected method

protected RealPath ( String Path ) : String
Path String
return String

SftpFileSystem() public method

public SftpFileSystem ( ) : System
return System

SftpFileSystem() public method

public SftpFileSystem ( string Host, int Port, string Username, string Password, int timeout = 10000 ) : System
Host string
Port int
Username string
Password string
timeout int
return System

Shutdown() public method

public Shutdown ( ) : void
return void

UploadFile() public method

public UploadFile ( String RemoteFile, String LocalFile ) : void
RemoteFile String
LocalFile String
return void

_Connect() protected method

protected _Connect ( ) : void
return void