Preventing duplicate files