1#![doc = include_str!("../README.md")]
2
3mod async_file;
6mod atomic;
7mod directory;
8mod error;
9mod file;
10mod lock;
11mod temp;
12
13pub use async_file::AsyncFile;
14pub use atomic::{
15 atomic_copy,
16 atomic_write,
17 atomic_write_string,
18};
19pub use directory::{
20 DirectoryEntry,
21 DirectoryEntryKind,
22 DirectoryReader,
23 ensure_dir,
24 remove_dir_all,
25};
26pub use error::{
27 FsError,
28 Operation,
29};
30pub use file::{
31 FileMetadata,
32 canonicalize,
33 metadata,
34 read_bounded,
35 read_string_bounded,
36 read_string_bounded_if_exists,
37 remove_file,
38 remove_if_exists,
39 rename,
40 set_permissions,
41 symlink_metadata,
42 try_exists,
43 write_bytes,
44};
45pub use lock::{
46 ExclusiveLock,
47 acquire_exclusive_lock,
48};
49pub use temp::{
50 TempDir,
51 TempFile,
52};
53
54#[cfg(test)]
55mod tests;