Commit Graph

2 Commits

Author SHA1 Message Date
6d3e8d65e1
Make readDirEntPortable more robust 2023-02-11 18:51:34 +08:00
53e324bfee
Fix failure on JFS filesystems
Some filesystems always return DT_UNKNOWN for d_type, since
it's non-portable.

For those cases we use 'stat' to figure out the file type.

Similar to: https://github.com/ggreer/the_silver_searcher/pull/37
2023-02-03 22:48:05 +08:00