fn optional_metadata(path: &Path) -> Result<Option<Metadata>>
Inspect a direct entry, preserving real I/O errors and dangling aliases.