pub fn is_dir(dir: &Path) -> bool
True when dir looks like a usable directory (exists and is a dir) — small helper for callers validating overrides.
dir