Skip to content

Catalog and History file data corruption #321

@polyvertex

Description

@polyvertex

When Keypirinha writes the .catalog or .history file, it should use the "swap method" by first creating a file with a different name, generating its content and fully writing it. Only then, the original file is overwritten with the new content (i.e. move operation).

This limits the risk of having corrupted data in case writing is interrupted.

Ref: initial chat

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions