1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//! Unified async remote file operations over **SMB**, **FTP**, and **SFTP**.
//!
//! # Features
//!
//! | Feature | Backend |
//! |---------|---------|
//! | `ftp` | [`async-ftp`](https://crates.io/crates/async-ftp) |
//! | `smb` | [`smb2`](https://crates.io/crates/smb2) |
//! | `sftp` | [`async-ssh2-tokio`](https://crates.io/crates/async-ssh2-tokio) |
//! | `full` | `smb` + `ftp` + `sftp` |
//!
//! ```toml
//! remote-fs = { version = "0.1", features = ["ftp"] }
//! remote-fs = { version = "0.1", features = ["full"] }
//! ```
//!
//! # Quick start
//!
//! ```no_run
//! # #[cfg(feature = "ftp")]
//! # {
//! use remote_fs::{Client, FtpConfig, RemoteFileSystem};
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), remote_fs::Error> {
//! 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?;
//! # Ok(())
//! # }
//! # }
//! # #[cfg(not(feature = "ftp"))]
//! # fn main() {}
//! ```
pub use ;
pub use ;
pub use RemoteFileSystem;
pub use ;
pub use FtpClient;
pub use FtpConfig;
pub use SftpClient;
pub use SftpConfig;
pub use SmbClient;
pub use SmbConfig;