mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
FileTransferActivity: ftp is now allowed
This commit is contained in:
@@ -42,6 +42,7 @@ use super::{Activity, Context};
|
|||||||
use crate::filetransfer::FileTransferProtocol;
|
use crate::filetransfer::FileTransferProtocol;
|
||||||
|
|
||||||
// File transfer
|
// File transfer
|
||||||
|
use crate::filetransfer::ftp_transfer::FtpFileTransfer;
|
||||||
use crate::filetransfer::sftp_transfer::SftpFileTransfer;
|
use crate::filetransfer::sftp_transfer::SftpFileTransfer;
|
||||||
use crate::filetransfer::FileTransfer;
|
use crate::filetransfer::FileTransfer;
|
||||||
use crate::fs::FsEntry;
|
use crate::fs::FsEntry;
|
||||||
@@ -237,11 +238,13 @@ impl FileTransferActivity {
|
|||||||
disconnected: false,
|
disconnected: false,
|
||||||
quit: false,
|
quit: false,
|
||||||
context: None,
|
context: None,
|
||||||
params: params,
|
|
||||||
client: match protocol {
|
client: match protocol {
|
||||||
FileTransferProtocol::Sftp => Box::new(SftpFileTransfer::new()),
|
FileTransferProtocol::Sftp => Box::new(SftpFileTransfer::new()),
|
||||||
FileTransferProtocol::Ftp => panic!("FTP is not supported YET!"), // FIXME: FTP
|
FileTransferProtocol::Ftp => {
|
||||||
|
Box::new(FtpFileTransfer::new(params.extra_flag_secure))
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
params: params,
|
||||||
local: FileExplorer::new(),
|
local: FileExplorer::new(),
|
||||||
remote: FileExplorer::new(),
|
remote: FileExplorer::new(),
|
||||||
tab: FileExplorerTab::Local,
|
tab: FileExplorerTab::Local,
|
||||||
@@ -256,7 +259,6 @@ impl FileTransferActivity {
|
|||||||
transfer_started: Instant::now(),
|
transfer_started: Instant::now(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user