Skip to main content

Module sftp

Module sftp 

Source
Expand description

SFTP (SSH File Transfer Protocol) download support.

This module provides secure file downloads over SSH using SFTP.

§Security

SFTP provides encrypted file transfer, unlike plain FTP. Authentication is handled via SSH (password or key-based).

§Example

use kget::sftp::SftpDownloader;
use kget::{ProxyConfig, Optimizer};

let downloader = SftpDownloader::new(
    "sftp://user@server.com:22/path/to/file".to_string(),
    "local_file.txt".to_string(),
    false,
    ProxyConfig::default(),
    Optimizer::new(),
);

downloader.download().unwrap();

Structs§

SftpDownloader
SFTP file downloader using SSH.