atomic-write icon indicating copy to clipboard operation
atomic-write copied to clipboard

Suggestion: atomicReplaceFile as an alias for atomicWriteFile

Open headprogrammingczar opened this issue 9 years ago • 0 comments

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.

headprogrammingczar avatar May 17 '16 13:05 headprogrammingczar