Compare fileIndexes instead of file names