In some scenarios, we need to access _dtype to get the necessary information for the file.
Why accessing to the struct dirent's member d_type return NULL in exFAT file system? rather than some file systems (among them: Btrfs, ext2, ext3, and ext4 see man-page) have full support for returning the file type in _dtype(DT_REG, DT_DIR, etc.).
In some scenarios, we need to access _dtype to get the necessary information for the file.
Why accessing to the struct dirent's member d_type return NULL in exFAT file system? rather than some file systems (among them: Btrfs, ext2, ext3, and ext4 see man-page) have full support for returning the file type in _dtype(DT_REG, DT_DIR, etc.).