-
Bill Fraser authored
The `d_type` field of `struct dirent` can be `DT_UNKNOWN` if a filesystem doesn't support returning the file type in directory entries. Linux's readdir(3) man page, for example, says: "Currently, only some filesystems [...] have full support for returning the file type in d_type. All applications must properly handle a return of DT_UNKNOWN."
Bill Fraser authoredThe `d_type` field of `struct dirent` can be `DT_UNKNOWN` if a filesystem doesn't support returning the file type in directory entries. Linux's readdir(3) man page, for example, says: "Currently, only some filesystems [...] have full support for returning the file type in d_type. All applications must properly handle a return of DT_UNKNOWN."