Skip to content

Suggestion: atomicReplaceFile as an alias for atomicWriteFile #5

@headprogrammingczar

Description

@headprogrammingczar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions