Override file contents on replace

Don't we want to save the file automatically after its content has been replaced? I think that's what the sequence of `removeFile` + `createFileFromContents` was doing before?