[repo] improved select of dirents