Given that broadly speaking, if you're writing a new file it should probably be done atomically, why don't language stdlibs come with this feature?
Sieg Heil!