mirror of
https://github.com/veeso/termscp.git
synced 2026-04-10 12:12:06 -07:00
@@ -36,6 +36,7 @@ use remotefs::client::{
|
||||
ssh::{ScpFs, SftpFs, SshOpts},
|
||||
};
|
||||
use remotefs::RemoteFs;
|
||||
use std::path::PathBuf;
|
||||
|
||||
/// Remotefs builder
|
||||
pub struct Builder;
|
||||
@@ -117,6 +118,9 @@ impl Builder {
|
||||
if let Some(password) = params.password {
|
||||
opts = opts.password(password);
|
||||
}
|
||||
if let Some(config_path) = config_client.get_ssh_config() {
|
||||
opts = opts.config_file(PathBuf::from(config_path));
|
||||
}
|
||||
opts
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user