Skip to main content

validate_dir

Function validate_dir 

Source
pub fn validate_dir(dir: &Path) -> Result<PathBuf, AppError>
Expand description

Validate that a scan root points to an existing directory and canonicalize it. Exposed because the binary validates --dir before it opens the run span, so the error surfaces before any log line mentions the directory.