shutil.copyfileobj()

shutil.copyfileobj(fsrc, fdst, length=16384)[source]

copy data from file-like object fsrc to file-like object fdst