コード例 #1
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);
        }
コード例 #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);
            }
        }