Prevent duplicate files to be imported at the same time.