Directory will only consider files with extensions that it's told are permitted