-
-
Notifications
You must be signed in to change notification settings - Fork 137
Safe writes
ransome1 edited this page Aug 4, 2026
·
4 revisions
Version History:
- Introduced in v2.0.26
Safe Writes ensures your todo data stays secure during file operations. It prevents corruption that could happen if something interrupts the writing process.
Whenever you add, edit, complete, or delete a todo, sleek performs a write operation. During this write:
- sleek writes your new changes to a
.tmpfile - Confirms the
.tmpfile was successfully created - Creates a
.bakbackup copy of your original file - Replaces your original file with the
.tmpfile - Automatically deletes both temporary files on success
sleek creates a .bak backup file containing your original data before replacing it.
-
Normal operation: Both
.tmpand.bakfiles are automatically cleaned up after a successful write -
If sleek crashes during the write: You might find a
.bakfile in your todo folder (e.g.,todo.txt.bak) -
What this means: The
.bakfile contains your original data. Your file is safe even if the crash interrupted the replacement -
What to do: You can safely delete any
.bakfiles manually