Skip to main content

Crate remote_fs

Crate remote_fs 

Source
Expand description

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

§Features

FeatureBackend
ftpasync-ftp
smbsmb2
sftpasync-ssh2-tokio
fullsmb + 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.
ClientBuilder
Builder for constructing a Client.
FileEntry
File or directory entry returned by listing.
FileMeta
Metadata for a remote path.

Enums§

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