Added filter based on filetype, will display directory if that kind of file is available in that directory