rawfile-localpv icon indicating copy to clipboard operation
rawfile-localpv copied to clipboard

Metadata write is not atomic

Open laurivosandi opened this issue 2 years ago • 1 comments

The write_text function used to write config file is not atomic

https://stackoverflow.com/questions/73883435/is-python-3-path-write-text-from-pathlib-atomic

laurivosandi avatar Dec 26 '22 13:12 laurivosandi

Thanks for pointing that out. I'm aware that some of the actions are non-atomic and they might cause trouble but since those actions are infrequent, I expect them to barely matter. Also, even if things go wrong, the corruption is not FATAL, and should be fairly easy to fix. Those are the reasons I haven't spent time on fixing it yet. That said, PRs are welcome as long they keep it simple.

semekh avatar Dec 28 '22 09:12 semekh