Copy from one file to another using CopyFile2 (Windows only).
(source, target)
| 103 | |
| 104 | if _winapi and hasattr(_winapi, 'CopyFile2'): |
| 105 | def copyfile2(source, target): |
| 106 | """ |
| 107 | Copy from one file to another using CopyFile2 (Windows only). |
| 108 | """ |
| 109 | _winapi.CopyFile2(source, target, 0) |
| 110 | else: |
| 111 | copyfile2 = None |
| 112 |