Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: atomicReplaceFile as an alias for atomicWriteFile #5

Open
headprogrammingczar opened this issue May 17, 2016 · 0 comments

Comments

@headprogrammingczar
Copy link

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.

@sestrella sestrella self-assigned this Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants