add extension filter on directory class