ID EN
OS

sendfile

Python 3.11

Copy count bytes from file descriptor in_fd to file descriptor out_fd starting at offset. Return the number of bytes sent. When EOF is reached return 0.

Syntax

PYTHON
os.sendfile(out_fd, in_fd, offset, count)

See Also

sendfile() Availability sendfile() socket.socket.sendfile()