Added Scp file transfer to ui

This commit is contained in:
ChristianVisintin
2020-12-05 15:21:01 +01:00
parent 545e283f00
commit a7c2de0669
3 changed files with 22 additions and 13 deletions

View File

@@ -26,10 +26,11 @@
use std::io::{Read, Write};
use std::path::{Path, PathBuf};
use crate::fs::{FsFile, FsEntry};
use crate::fs::{FsEntry, FsFile};
// Transfers
pub mod ftp_transfer;
pub mod scp_transfer;
pub mod sftp_transfer;
/// ## FileTransferProtocol
@@ -39,6 +40,7 @@ pub mod sftp_transfer;
#[derive(std::cmp::PartialEq, std::fmt::Debug, std::clone::Clone)]
pub enum FileTransferProtocol {
Sftp,
Scp,
Ftp(bool), // Bool is for secure (true => ftps)
}