filetransfer trait: mkdir, remove
This commit is contained in:
parent
77cf6ecb45
commit
37d2bc9485
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue