Hi all,
I'm writing a small program to find duplicate files
I iterate through each file in a directory
then i load the file path and the md5hash of that file into a dictionary ( file path being the key)
I next want to walk through each value in the dictionary to see if any values match then display the two+ keys in a display window
however im not sure how to not display duplicate findings
1a
2b
3a
4c
If i use a for each loop with the key value pair I would get entries for 1 matchs 3 and then that 3 match 1
If i had a search that i could read everything below the search string and not have to worry about that ( plus i believe it would be more efficient)
Is there a name for this type of loop ( please excuse my lack of formal knowlege)
OR would the best practice be to remove any dictionary entries as they are found?
Thanks so much for your help