Protecting against overriding an existing file