rec / safer

🧷 A safer writer 🧷
https://rec.github.io/safer/
MIT License
174 stars 10 forks source link

Come up with a better strategy for simlinks #7

Closed rec closed 4 years ago

rec commented 4 years ago

https://www.reddit.com/r/programming/comments/g76xmk/safer_2_a_better_safer_file_writer/fofsybh/

I have a config file in my home directory that I wish to keep versioned. I created a git repos, and put the config file there, and then symlinked it into my home directory. However, the software that uses this config file sometimes writes things into it, and it does it by writing a new file, then renaming both.

If your library does this, then the end result is that my config file is no longer versioned. It's very frustrating.