C# Class BuildServerUploaderConsole.Sftp.SftpManager

Show file Open project: vchelaru/FlatRedBall

Public Methods

Method Description
DeleteRemoteDirectory ( string host, string directory, string username, string password ) : void
DeleteRemoteFile ( string host, string file, string username, string password ) : void
GetClient ( string host, string userName, string password ) : SftpClient
GetList ( string host, string folder, string userName, string password ) : IEnumerable
UploadFile ( string localFileToUpload, string host, string targetFile, string userName, string password ) : void
UploadFileWithOpenConnection ( string localFileToUpload, string targetFile, SftpClient sftp ) : void

Private Methods

Method Description
CreateDirectoriesRecursively ( string directory, SftpClient sftp ) : void
Sftp_ErrorOccurred ( object sender, Renci e ) : void

Method Details

DeleteRemoteDirectory() public static method

public static DeleteRemoteDirectory ( string host, string directory, string username, string password ) : void
host string
directory string
username string
password string
return void

DeleteRemoteFile() public static method

public static DeleteRemoteFile ( string host, string file, string username, string password ) : void
host string
file string
username string
password string
return void

GetClient() public static method

public static GetClient ( string host, string userName, string password ) : SftpClient
host string
userName string
password string
return Renci.SshNet.SftpClient

GetList() public static method

public static GetList ( string host, string folder, string userName, string password ) : IEnumerable
host string
folder string
userName string
password string
return IEnumerable

UploadFile() public static method

public static UploadFile ( string localFileToUpload, string host, string targetFile, string userName, string password ) : void
localFileToUpload string
host string
targetFile string
userName string
password string
return void

UploadFileWithOpenConnection() public static method

public static UploadFileWithOpenConnection ( string localFileToUpload, string targetFile, SftpClient sftp ) : void
localFileToUpload string
targetFile string
sftp Renci.SshNet.SftpClient
return void