Skip to content

Commit 4543824

Browse files
authored
Remove old "SFTP" implementation (#50)
* Rename old "SFTP" implementation to `Scp` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix warnings from clippy in `tests/openssh.rs` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Update changelog Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix confusing changelog Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Rename scp altogether Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Rm scp integration tests Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent 33a7fe9 commit 4543824

File tree

4 files changed

+20
-712
lines changed

4 files changed

+20
-712
lines changed

src/changelog.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ use crate::*;
1414
/// - Make [`ChildStdin`] an opaque type.
1515
/// - Make [`ChildStdout`] an opaque type.
1616
/// - Make [`ChildStderr`] an opaque type.
17+
///
18+
/// ## Removed
19+
/// - Type `Sftp`.
20+
/// - Type `Mode`.
21+
/// - Type `RemoteFile`.
22+
/// - Associated function `Session::sftp`.
1723
#[doc(hidden)]
1824
pub mod unreleased {}
1925

src/lib.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,6 @@ pub use child::RemoteChild;
172172
mod error;
173173
pub use error::Error;
174174

175-
mod sftp;
176-
pub use sftp::{Mode, RemoteFile, Sftp};
177-
178175
#[cfg(feature = "process-mux")]
179176
pub(crate) mod process_impl;
180177

@@ -413,13 +410,6 @@ impl Session {
413410
})
414411
}
415412

416-
/// Prepare to perform file operations on the remote host.
417-
///
418-
/// See [`Sftp`] for details on how to interact with the remote files.
419-
pub fn sftp(&self) -> Sftp<'_> {
420-
Sftp::new(self)
421-
}
422-
423413
/// Terminate the remote connection.
424414
pub async fn close(self) -> Result<(), Error> {
425415
delegate!(self.0, imp, { imp.close().await })

0 commit comments

Comments
 (0)