simply check if the filename has suffix .idx