Cookbook: FTP

Server

mkdir -p /tmp/ftp-root
cargo run -p ftp-server -- 127.0.0.1:2121 /tmp/ftp-root
# user=ftp pass=ftp

Client

cargo run -p ftp-get -- 127.0.0.1:2121 /
cargo run -p ftp-get -- 127.0.0.1:2121 /hello.txt

Env: FTP_USER / FTP_PASS (default ftp/ftp). Async FtpClient + FtpGet RETR; completion is callback-driven.

Sources: examples/ftp, examples/ftp-get. Guide: FTP.