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

Function _fcopyfile

Lib/pathlib/_os.py:55–60  ·  view source on GitHub ↗

Copy a regular file content using high-performance fcopyfile(3) syscall (macOS).

(source_fd, target_fd)

Source from the content-addressed store, hash-verified

53
54if posix and hasattr(posix, '_fcopyfile'):
55 def _fcopyfile(source_fd, target_fd):
56 """
57 Copy a regular file content using high-performance fcopyfile(3)
58 syscall (macOS).
59 """
60 posix._fcopyfile(source_fd, target_fd, posix._COPYFILE_DATA)
61else:
62 _fcopyfile = None
63

Callers 1

copyfileobjFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…