Module rsfs::disk
[−]
[src]
A zero cost wrapper around std::fs
.
The FS
struct is an empty struct. All methods on it use std::fs
functions. The intent of
this module is to set the filesystem you use to rsfs::disk::FS
in main.rs
and to set the
filesystem to rsfs::mem::test::FS
(once it exists) in your tests.
Examples
use rsfs::*; use rsfs::unix_ext::*; let fs = rsfs::disk::FS; let meta = fs.metadata("/").unwrap(); assert!(meta.is_dir()); assert_eq!(meta.permissions().mode(), 0o755);
Structs
DirBuilder |
A builder used to create directories in various manners. |
DirEntry |
Entries returned by the |
FS |
An empty struct that satisfies |
File |
A view into a file on the filesystem. |
FileType |
Returned from |
Metadata |
Metadata information about a file. |
OpenOptions |
Options and flags which can be used to configure how a file is opened. |
Permissions |
Representation of the various permissions on a file. |
ReadDir |
Iterator over entries in a directory. |