unix: Use metadata for DirEntry::file_type
fallback
#93471
Merged
DirEntry::file_type
fallback
#93471