Skip to main content

Crate remote_fs

Crate remote_fs 

Source
Expand description

Unified async remote file operations over SMB, FTP, and SFTP.

Backends:

§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§

ClientBuilder
Builder for constructing a Client.
FileEntry
File or directory entry returned by listing.
FileMeta
Metadata for a remote path.
FtpClient
FTP remote file system client (backed by async-ftp).
FtpConfig
FTP connection configuration.
SftpClient
SFTP remote file system client (backed by async-ssh2-tokio + russh-sftp).
SftpConfig
SFTP connection configuration.
SmbClient
SMB remote file system client (backed by smb2).
SmbConfig
SMB connection configuration.

Enums§

Client
Unified client that dispatches to SMB / FTP / SFTP backends.
Config
Generic connection configuration.
Error
Unified error type for remote file operations.
Protocol
Supported remote protocols.

Traits§

RemoteFileSystem
Unified async remote file system operations.

Type Aliases§

Result