Crate reth_fs_util

Source
Expand description

Wrapper for std::fs methods

Enums§

FsPathError
Various error variants for std::fs operations that serve as an addition to the io::Error which 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_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.