#![cfg_attr(coverage_nightly, coverage(off))]
use anyhow::{anyhow, Result};
use std::path::{Path, PathBuf};
#[derive(Debug, Clone, thiserror::Error)]
pub enum PathValidationError {
#[error("Path does not exist: {path}")]
NotFound { path: PathBuf },
#[error("Path is not a file: {path}")]
NotFile { path: PathBuf },
#[error("Path is not a directory: {path}")]
NotDirectory { path: PathBuf },
#[error("Path is not readable: {path}")]
NotReadable { path: PathBuf },
#[error("Invalid path: {path}")]
Invalid { path: PathBuf },
}
pub struct PathValidator;
include!("path_validator_checks.rs");
include!("path_validator_tests.rs");