Available on crate feature 
fs only.Expand description
Filesystem manipulation operations.
Structs§
- DirBuilder
 - A builder used to create directories in various manners.
 - DirEntry
 - Entries returned by the 
ReadDiriterator. - File
 - An object providing access to an open file on the filesystem.
 - Metadata
 - Metadata information about a file.
 - Open
Options  - Options and flags which can be used to configure how a file is opened.
 - ReadDir
 - Iterator over the entries in a directory.
 
Functions§
- create_
dir  - Creates a new, empty directory at the provided path.
 - create_
dir_ all  - Recursively create a directory and all of its parent components if they are missing.
 - metadata
 - Given a path, query the file system to get information about a file, directory, etc.
 - read
alloc - Read the entire contents of a file into a bytes vector.
 - read_
dir  - Returns an iterator over the entries within a directory.
 - read_
to_ string alloc - Read the entire contents of a file into a string.
 - remove_
dir  - Removes an empty directory.
 - remove_
file  - Removes a file from the filesystem.
 - rename
 - Rename a file or directory to a new name.
Delete the original file if 
oldalready exists. - write
 - Write a slice as the entire contents of a file.
 
Type Aliases§
- File
Type  - A structure representing a type of file with accessors for each file type.
It is returned by 
Metadata::file_typemethod. - Permissions
 - Representation of the various permissions on a file.