public TransferPluginSftp (ConnectionData data) : base (data) { if (data.Password != null) this.sftp = new SftpClient (data.Host, data.Port, data.User, data.Password); else this.sftp = new SftpClient (data.Host, data.Port, data.User, data.PrivateKey); }
public TransferManager (string database_path, Uri uri) { if (!database_path.EndsWith ("" + Path.DirectorySeparatorChar)) database_path += Path.DirectorySeparatorChar; DatabasePath = database_path; RemotePath = uri.AbsolutePath; ConnectionData connection_data = new ConnectionData (uri, "/home/hbons/test.txt"); if (connection_data.Scheme.Equals ("ssh")) this.transfer_plugin = new TransferPluginSftp (connection_data); }
public TransferPlugin (ConnectionData data) { }