Best-effort "back up and write" for uninstall paths. Mirrors the install pattern (`backup_config_file` then `safe_write_json_file`) but swallows errors so the rest of the uninstall can continue. Returns `true` when the new content reached disk. Issue #63: every config rewrite must leave a `.bak` so the user can recover if anything goes wrong.
(path: &Path, value: &serde_json::Value)
| 727 | /// Issue #63: every config rewrite must leave a `.bak` so the user can |
| 728 | /// recover if anything goes wrong. |
| 729 | pub fn backup_and_write_json(path: &Path, value: &serde_json::Value) -> bool { |
| 730 | let backup = backup_config_file(path).ok().flatten(); |
| 731 | safe_write_json_file(path, value, backup.as_deref()).is_ok() |
| 732 | } |
| 733 | |
| 734 | /// Finds the tracedecay binary path. |
| 735 | /// |
no test coverage detected