Added function to enable duplicates to be removed from a single directory