mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Welcome messages
This commit is contained in:
@@ -225,7 +225,7 @@ impl FileTransfer for FtpFileTransfer {
|
||||
port: u16,
|
||||
username: Option<String>,
|
||||
password: Option<String>,
|
||||
) -> Result<(), FileTransferError> {
|
||||
) -> Result<Option<String>, FileTransferError> {
|
||||
// Get stream
|
||||
let mut stream: FtpStream = match FtpStream::connect(format!("{}:{}", address, port)) {
|
||||
Ok(stream) => stream,
|
||||
@@ -273,7 +273,7 @@ impl FileTransfer for FtpFileTransfer {
|
||||
// Set stream
|
||||
self.stream = Some(stream);
|
||||
// Return OK
|
||||
Ok(())
|
||||
Ok(self.stream.as_ref().unwrap().get_welcome_msg())
|
||||
}
|
||||
|
||||
/// ### disconnect
|
||||
|
||||
Reference in New Issue
Block a user