Available on crate feature
fs_utf8
only.Expand description
A fully UTF-8 filesystem API modeled after cap_std::fs
.
Where cap_std::fs
would use Path
and PathBuf
, this fs_utf8
module
uses Utf8Path
and Utf8PathBuf
, meaning that all paths are valid
UTF-8.
To use this module, enable the fs_utf8
cargo feature.
If you don’t want to restrict paths to UTF-8, use the regular
cap_std::fs
module instead.
Re-exports§
pub use camino;
Structs§
- Dir
- A reference to an open directory on a filesystem.
- DirBuilder
- A builder used to create directories in various manners.
- DirEntry
- Entries returned by the
ReadDir
iterator. - File
- A reference to an open file on a filesystem.
- File
Type - A structure representing a type of file with accessors for each file type.
- Metadata
- Metadata information about a file.
- Open
Options - 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 the entries in a directory.
Traits§
- DirBuilder
Ext Unix - Unix-specific extensions to [
fs::DirBuilder
]. - FileExt
- Unix-specific extensions to [
fs::File
]. - File
Type Ext Unix, or target_os="vxworks"
, or Windows andwindows_file_type_ext
- Unix-specific extensions for
FileType
. - Metadata
Ext - Unix-specific extensions for
MetadataExt
. - Open
Options Ext - Unix-specific extensions to [
fs::OpenOptions
]. - Permissions
Ext Unix - Unix-specific extensions to
Permissions
.