do_with_file_dups changed to more appropriate iter_file_dups.