Пример #1
0
 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);
 }
Пример #2
0
        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);
        }
Пример #3
0
 public TransferPlugin (ConnectionData data)
 {
 }