accept file directori extens check file extens equal ignor extens 