MCPcopy Create free account
hub / github.com/RustPython/RustPython / _fcopyfile

Function _fcopyfile

Lib/pathlib/_os.py:56–61  ·  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

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

Callers 1

copyfileobjFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected