Cat multiple files into dest.
(dest, *sources)
| 598 | |
| 599 | |
| 600 | def cat_files(dest, *sources): |
| 601 | """Cat multiple files into dest.""" |
| 602 | with open(dest, "wb") as fdst: |
| 603 | for src in sources: |
| 604 | with open(src, "rb") as fsrc: |
| 605 | shutil.copyfileobj(fsrc, fdst) |
| 606 | |
| 607 | |
| 608 | @contextlib.contextmanager |
no outgoing calls