stat method for file transfers

This commit is contained in:
ChristianVisintin
2020-12-01 10:57:13 +01:00
parent 698db4219c
commit 9b6e1864d8
2 changed files with 123 additions and 72 deletions

View File

@@ -141,6 +141,11 @@ pub trait FileTransfer {
/// Rename file or a directory
fn rename(&self, file: &FsEntry, dst: &Path) -> Result<(), FileTransferError>;
/// ### stat
///
/// Stat file and return FsEntry
fn stat(&self, path: &Path) -> Result<FsEntry, FileTransferError>;
/// ### send_file
///
/// Send file to remote