MCPcopy Index your code
hub / github.com/python/cpython / copyfile2

Function copyfile2

Lib/pathlib/_os.py:104–108  ·  view source on GitHub ↗

Copy from one file to another using CopyFile2 (Windows only).

(source, target)

Source from the content-addressed store, hash-verified

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

Callers 1

_copy_from_fileMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…