filetransfer trait: mkdir, remove

This commit is contained in:
ChristianVisintin 2020-11-14 14:13:30 +01:00
parent 77cf6ecb45
commit 37d2bc9485

View file

@ -91,6 +91,16 @@ pub trait FileTransfer {
fn list_dir(&self) -> Result<Vec<FsEntry>, FileTransferError>;
/// ### mkdir
///
/// Make directory
fn mkdir(&self, dir: String) -> Result<(), FileTransferError>;
/// ### remove
///
/// Remove a file or a directory
fn remove(&self, file: FsEntry) -> Result<(), FileTransferError>;
/// ### send_file
///
/// Send file to remote