fn has_kind(path: &Path, kind: PathKind) -> bool
Whether fs::metadata (which follows symlinks) reports the declared kind.
fs::metadata