more is_resource checks before readdir