Module i2pp.core.configuration_validator.validation_helpers
This module provides utility functions used during validation of the input configuration.
Functions
def resolve_and_validate_path(path_str: str, must_exist: bool = True) ‑> pathlib.Path
-
Expand source code
def resolve_and_validate_path(path_str: str, must_exist: bool = True) -> Path: """Resolve a path string to a Path object and validate its existence.""" path = Path(path_str).resolve() if must_exist and not path.exists(): raise FileNotFoundError(f"Path does not exist: {path}") return path
Resolve a path string to a Path object and validate its existence.