pub fn validate_source_dir(source_dir: &Path) -> Result<PathBuf, InvalidPath>
Validate and canonicalize a directory path.
Returns InvalidPath if the path doesn’t exist, isn’t a directory, or cannot be canonicalized.
InvalidPath