`fileInfos[i-1]` doesn't need to be a moving target. It can just be `dupeList[0]` for clarity.