The dir_result->d_type == DT_DIR does not work on XFS file systems.
This is fixed by using the FileLister::isDirectory when dir_result->d_type == DT_UNKNOWN.
According to readdir_r documentation, the case where d_type == DT_UNKNOWN should be handled.