Duplicate File find and delete app?

Hi Geoff - It should be quite fast. However when doing deletes, don’t use remove() but instead use API delete, as Carl demonstrated on this thread:

sacré bleu! If you have it then please start using it. And if not - then run out and get it for Santa to give you an early Christmas present. Once you start using it you will wonder why you didn’t start doing so years ago!

It will change the way you think and code. Whorf hypothesis and all that…

(Make sure you are using latest version - currently 3.70 - as there have been lots of improvements over the years.)

<end of advertisement/plug> :grinning:

One other thought re choosing which folder is the “keeper”. When you have your list of duplicate files, you could populate another queue of unque folders which have duplicate files. The user gets a list and orders the folders in order of preference. So if a file is in two or more folders then it is retained in the highest ranking directory - the other copies of the file are deleted. This still leaves the issue of identical files in the same directory with different names. You might need the user to choose which one to keep in that case.

cheers

Geoff R

1 Like