Name
copyfileobj
Synopsis
copyfileobj(fsrc
,fdst
,bufsize
=16384)
Copies file object fsrc
, which must be
open for reading, to file object fdst
,
which must be open for writing. Copies no more than
bufsize
bytes at a time if
bufsize
is greater than
0
. File objects are covered later in this chapter.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.