Is there any case in which we anticipate duplicate file names? If not, isn't this just an error condition? I wonder if we should just throw an exception if this happens, since it indicates some assumption is broken.