reth::utils

Function parse_path

pub fn parse_path(value: &str) -> Result<PathBuf, LookupError<VarError>>
Expand description

Re-exported from reth_node_core, also to prevent a breaking change. See the comment on the reth_node_core::args re-export for more details. Parses a user-specified path with support for environment variables and common shorthands (e.g. ~ for the user’s home directory).