fn require_directory(path: &Path, metadata: &Metadata) -> Result<()>
Admit a direct directory, matching the existing project-state contract.