taskell icon indicating copy to clipboard operation
taskell copied to clipboard

Lost file when device runs out of storage

Open Amolith opened this issue 5 years ago • 2 comments

I just opened taskell to add a task and reorder some things without realising I had run out of storage space. Adding a task worked but trying to move an item up in the list caused taskell to crash. I don't know how data is written to the file but mine is now empty. It's a personal list and not related to any repos so I wasn't backing it up with anything.

I know recovery is impossible but it might be good to add some kind of error handling for situations like this that throws a warning when attempting to write to the file. The user could then free up some space and allow taskell to save changes.

Amolith avatar Jul 27 '20 18:07 Amolith

Sorry you lost your list!

The file writing behaviour definitely needs some work. I think probably I need to write to a temporary file and then switch it once it's written – then it wouldn't kill the current file if something goes wrong.

smallhadroncollider avatar Jul 27 '20 19:07 smallhadroncollider

Sorry you lost your list!

It's not all bad; it was a fantastic opportunity for me to learn a bit about file recovery. I've been meaning to for a few weeks but never got around to it. I was actually able to find a few copies of my list with PhotoRec; I'll have to go through them and figure out which one I want but I have recovered it :wink:

image

Amolith avatar Jul 27 '20 21:07 Amolith