cginternals / globjects

C++ library strictly wrapping OpenGL objects.
https://globjects.org
MIT License
539 stars 59 forks source link

readFiles now handles DT_UNKNOWN #245

Closed lordgeorg closed 10 years ago

lordgeorg commented 10 years ago

Implements simple handling for d_type DT_UNKNOWN (always returned by readdir() on my platform (jfs))

http://man7.org/linux/man-pages/man3/readdir.3.html "Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) have full support for returning the file type in d_type. All applications must properly handle a return of DT_UNKNOWN."

scheibel commented 10 years ago

I'll test it later but it looks good.