This avoids building up a second datastructure for the duplicate files warning case and simply flatten and strip duplicates if that case ever arises.
This avoids building up a second datastructure for the duplicate files warning case and simply flatten and strip duplicates if that case ever arises.