Expand description
Unified async remote file operations over SMB, FTP, and SFTP.
§Features
| Feature | Backend |
|---|---|
ftp | async-ftp |
smb | smb2 |
sftp | async-ssh2-tokio |
full | smb + ftp + sftp |
remote-fs = { version = "0.1", features = ["ftp"] }
remote-fs = { version = "0.1", features = ["full"] }§Quick start
use remote_fs::{Client, FtpConfig, RemoteFileSystem};
let cfg = FtpConfig::new("ftp.example.com", "user", "pass");
let mut client = Client::ftp(&cfg).await?;
let entries = client.list("/").await?;
client.write("/hello.txt", b"hello").await?;
client.disconnect().await?;Structs§
- Client
- Unified client over SMB / FTP / SFTP.
- Client
Builder - Builder for constructing a
Client. - File
Entry - File or directory entry returned by listing.
- File
Meta - Metadata for a remote path.
Enums§
- Config
- Generic connection configuration.
- Error
- Unified error type for remote file operations.
- Protocol
- Supported remote protocols.
Traits§
- Remote
File System - Unified async remote file system operations.