Skip to main content

Module sftp

Module sftp 

Source
Available on crate feature ssh-real only.
Expand description

SFTP subsystem (requires the real SSH stack).

A6: this module calls russh_sftp directly through crate::ssh::sftp_session, which is itself gated behind ssh-real. Leaving it ungated meant the --no-default-features build documented in Cargo.toml — the one used to diagnose dependency problems — failed with 62 errors instead of producing a stack-free binary. Gating the module is what makes that documented configuration real again. SFTP subsystem operations over SSH (upload/download/ls/mkdir/rm/stat/rename).

Complements SCP (regular-file wire). SFTP adds directory trees and FS ops. Multi-host fan-out uses crate::concurrency::map_bounded. Multi-file on one host reuses one SFTP session (G-SFTP-19).

Structs§

SftpOptions
Per-invocation SFTP options resolved at the CLI boundary.

Functions§

run_sftp
Runs the sftp subcommand.