Function validate_directory_path
Source pub fn validate_directory_path(path: &Path) -> PatternsResult<PathBuf>
Expand description
Validate and canonicalize a directory path.
§Arguments
path - The path to validate
§Returns
The canonicalized path if valid and is a directory.
§Errors
PatternsError::FileNotFound if the directory doesn’t exist
PatternsError::NotADirectory if the path is not a directory