checking file direcoties