raise an Exception is a file is to be overwritten