Dir.Iterator doesn't return file-type correctly from getdents64 #5123
Labels
bug
Observed behavior contradicts documented or intended behavior
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
standard library
This issue involves writing Zig code for the standard library.
Milestone
According to the Linux man page for
getdents64(2)
,linux_dirent64.d_type
will beDT_UNKNOWN
unless the filesystem specifically has support for filling it out. A furtheros.fstatat
--or similar--is necessary for getting the type.I encountered this issue by attempting to iterate a directory on a FUSE filesystem on Linux.
The text was updated successfully, but these errors were encountered: