def copyfileobj(fsrc, fdst, total, length=<NUM_LIT:16>*<NUM_LIT>):
with tqdm(unit='<STR_LIT>', total=total, unit_scale=True) as pbar:<EOL><INDENT>while <NUM_LIT:1>:<EOL><INDENT>buf = fsrc.read(length)<EOL>if not buf:<EOL><INDENT>break<EOL><DEDENT>fdst.write(buf)<EOL>pbar.update(len(buf))<EOL><DEDENT><DEDENT>
Copy data from file-like object fsrc to file-like object fdst

    This is like shutil.copyfileobj but with a progressbar.