mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
filetransfer trait: mkdir, remove
This commit is contained in:
@@ -91,6 +91,16 @@ pub trait FileTransfer {
|
|||||||
|
|
||||||
fn list_dir(&self) -> Result<Vec<FsEntry>, FileTransferError>;
|
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
|
||||||
///
|
///
|
||||||
/// Send file to remote
|
/// Send file to remote
|
||||||
|
|||||||
Reference in New Issue
Block a user