Added CLI options to set starting working directory on both local and remote hosts

This commit is contained in:
veeso
2021-02-25 14:27:34 +01:00
parent 7f24d6db5c
commit 4ff7fc079c
6 changed files with 52 additions and 16 deletions

View File

@@ -84,6 +84,7 @@ impl ActivityManager {
protocol: FileTransferProtocol,
username: Option<String>,
password: Option<String>,
entry_directory: Option<PathBuf>,
) {
self.ftparams = Some(FileTransferParams {
address,
@@ -91,6 +92,7 @@ impl ActivityManager {
protocol,
username,
password,
entry_directory,
});
}
@@ -164,6 +166,7 @@ impl ActivityManager {
_ => Some(activity.password.clone()),
},
protocol: activity.protocol,
entry_directory: None, // Has use only when accessing with address
});
break;
}