Checks a folder for duplicate files