Duplicate files are a needless hassle for the user. All they are good for is eating up valuable hard disk…