Commit 2af2cc6
committed
v0.05
- The update_file method will replace the content in an existing file
rather than creating a new one. A backup of the original file is
made while the new content is being written, in the unlikely event
of an error during content replacement. The backup will be removed
if the replacement succeeds. A new file will be created if one does
not exist, as before. (gh#6)1 parent d9dd035 commit 2af2cc6
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments