Expand description
Contains various std::fs
wrapper functions that also contain the target path in their errors
Functions§
- Canonicalize a path, returning an error if the path does not exist.
- Wrapper for
std::fs::copy
- Wrapper for
std::fs::create_dir
- Wrapper for
std::fs::create_dir_all
- Wrapper for
File::create
. - Returns an iterator over all files with the given extension under the
root
dir. - Returns an iterator over all JSON files under the
root
dir. - Normalize a path, removing things like
.
and..
. - Wrapper for
std::fs::File::open
- Wrapper for
std::fs::read
. - Reads the JSON file and deserialize it into the provided type.
- Wrapper for
std::fs::read_link
. - Wrapper for
std::fs::read_to_string
. - Wrapper for
std::fs::remove_dir
- Wrapper for
std::fs::remove_dir_all
- Wrapper for
std::fs::remove_file
. - Wrapper for
std::fs::write
- Writes the object as a JSON object.
- Writes the object as a pretty JSON object.
Type Aliases§
- Result 🔒