Message309803
Martin, your points got me thinking... to make a proper copy of a file, it should be done using bytes! Text IO could easily lead to corrupting your file.
for example (current function):
with open(old_path, 'r', encoding='latin-1') as fsrc:
with open(new_path, 'w') as fdst:
copyfileobj(fsrc, fdst)
This would lead you to have wrongly encoded file with different filesize. |
|
Date |
User |
Action |
Args |
2018-01-11 12:17:11 | YoSTEALTH | set | recipients:
+ YoSTEALTH, martin.panter |
2018-01-11 12:17:11 | YoSTEALTH | set | messageid: <1515673031.76.0.467229070634.issue32529@psf.upfronthosting.co.za> |
2018-01-11 12:17:11 | YoSTEALTH | link | issue32529 messages |
2018-01-11 12:17:11 | YoSTEALTH | create | |
|