pub async fn entry_is_dir(entry: &DirEntry) -> boolExpand description
Resolve whether entry is a directory, following symlinks.
Returns false if the stat fails (broken symlink, permission
error, etc.) — the caller then skips the entry rather than
aborting the walk.
DirEntry::metadata() does not traverse symlinks (it behaves
like symlink_metadata), so a symlink pointing at a directory
would wrongly report false. To honor the documented
symlink-following contract — which crawlers like deno/python/ruby
rely on for symlinked package directories — we stat the resolved
entry.path() via tokio::fs::metadata, which does follow links.