atomic-write
atomic-write copied to clipboard
Suggestion: atomicReplaceFile as an alias for atomicWriteFile
On most unix-y systems, the technique used to modify a file by creating and replacing will not appear to be modifying the file from the perspective of programs that already have the file open. This matters common operations like log rotation. Adding atomicReplaceFile = atomicWriteFile would not be an API change, and would allow users of the library to be a bit more clear in their code when the occasion calls for it.