File transfer exec command

This commit is contained in:
veeso
2021-03-04 16:07:08 +01:00
parent 88a014807f
commit 51f0c56b84
4 changed files with 158 additions and 1 deletions

View File

@@ -189,6 +189,11 @@ pub trait FileTransfer {
/// Stat file and return FsEntry
fn stat(&mut self, path: &Path) -> Result<FsEntry, FileTransferError>;
/// ### exec
///
/// Execute a command on remote host
fn exec(&mut self, cmd: &str) -> Result<String, FileTransferError>;
/// ### send_file
///
/// Send file to remote