Module fs_utf8

Source
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.
FileType
A structure representing a type of file with accessors for each file type.
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 the entries in a directory.

Traits§

DirBuilderExtUnix
Unix-specific extensions to [fs::DirBuilder].
FileExt
Unix-specific extensions to [fs::File].
FileTypeExtUnix, or target_os="vxworks", or Windows and windows_file_type_ext
Unix-specific extensions for FileType.
MetadataExt
Unix-specific extensions for MetadataExt.
OpenOptionsExt
Unix-specific extensions to [fs::OpenOptions].
PermissionsExtUnix
Unix-specific extensions to Permissions.