relan / exfat

Free exFAT file system implementation
GNU General Public License v2.0
793 stars 181 forks source link

Why accessing to the struct dirent's member d_type return NULL in exFAT file system? #147

Closed TinusChen closed 3 years ago

TinusChen commented 4 years ago

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.).

relan commented 4 years ago

d_type was fixed in 5d55e2a922a3d5e24a2141aa5069687dcdb2bca8. Did you try fuse-exfat 1.3.0?

TinusChen commented 4 years ago

Thanks for the tip !