Now that we have openTempFile, it should be straightforward to implement atomicWriteFile as in atomic-write, which works by creating a temporary file and then moving it to the final location.
Maybe it should even be the default mode, replacing existing writeFile?..
Now that we have
openTempFile, it should be straightforward to implementatomicWriteFileas inatomic-write, which works by creating a temporary file and then moving it to the final location.Maybe it should even be the default mode, replacing existing
writeFile?..