Commit 2daa8a843f16175b38d827dae805c11fcc7ee85b
1 parent
78757779
remove file if already exists
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
string/crlf.anubis
| ... | ... | @@ -104,6 +104,8 @@ public define ResultCopy |
| 104 | 104 | ByteArray -> ByteArray converter, |
| 105 | 105 | Bool keep_org |
| 106 | 106 | )= |
| 107 | + //remove the temporary file if exists | |
| 108 | + forget(remove(file+".tmp")); | |
| 107 | 109 | if rename(file, file+".tmp") then |
| 108 | 110 | with result = copy_file_and_convert_to_CRLF(file+".tmp", file, converter), |
| 109 | 111 | (if keep_org then | ... | ... |