Utility to compare two directories & give total number of files it should show the duplicates and an option to delete those duplicates.
I want to write a Java Utility that compare two directory and gives a report of the following the total number of files and directory within it and if there are any duplicate files or sub directory, it should show the duplicates and an option to delete those duplicates along with UI. I am able to write the code for comparing two files with size but i want the file to compared with the all types of extensions like .pdf,.jpeg,.bmp,.doc,.mp3,.avi etc.