Commit 1c55739
Fix: append .bak extension instead of replacing file extension
with_extension("md.bak") replaces the existing extension rather
than appending. For .md files this produces the correct result by
coincidence, but for .json files it would produce settings.md.bak
instead of settings.json.bak.
Use with_file_name(format!("{}.bak", file_name)) to properly
append .bak, matching the approach used in utils/backup.rs.
Relates to #195
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 15db3ff commit 1c55739
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
561 | | - | |
| 561 | + | |
| 562 | + | |
562 | 563 | | |
563 | 564 | | |
564 | 565 | | |
| |||
0 commit comments