Avoid overwriting non-duplicate files with the same filename.