Expand description
Wrapper for std::fs methods
Enums§
- FsPath
Error - Various error variants for
std::fsoperations that serve as an addition to theio::Errorwhich does not provide any information about the path.
Functions§
- atomic_
write_ file - Writes atomically to file.
- create_
dir_ all - Wrapper for
std::fs::create_dir_all - create_
file - Wrapper for
File::create. - metadata
- Wrapper for
std::fs::metadata - open
- Wrapper for
File::open. - read
- Read the entire contents of a file into a bytes vector.
- read_
dir - Wrapper for
std::fs::read_dir - read_
json_ file - Reads the JSON file and deserialize it into the provided type.
- read_
link - Wrapper for
std::fs::read_link - read_
to_ string - Wrapper for
std::fs::read_to_string - remove_
dir_ all - Wrapper for
std::fs::remove_dir_all - remove_
file - Wrapper for
std::fs::remove_file - rename
- Wrapper for
std::fs::rename - write
- Wrapper for
std::fs::write - write_
json_ file - Writes the object as a JSON object.
Type Aliases§
- Result
- Result alias for
FsPathError.