fn validate_dir_path(input: &String) -> Result<(), InvalidPath>
A function to validate the path input.