Skip to content

Commit

Permalink
fix(cli): missing part_bytes argument in a few placs
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Aug 23, 2023
1 parent 4dd3591 commit 8ffe5b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudfiles_cli/cloudfiles_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def _cp_single(ctx, source, destination, recursive, compression, progress, block

if not isinstance(xferpaths, str):
if parallel == 1:
_cp(srcpath, destpath, compression, progress, block_size, xferpaths)
_cp(srcpath, destpath, compression, progress, block_size, part_bytes, xferpaths)
return

total = None
Expand All @@ -272,7 +272,7 @@ def _cp_single(ctx, source, destination, recursive, compression, progress, block
if use_stdout:
fn = partial(_cp_stdout, srcpath)
else:
fn = partial(_cp, srcpath, destpath, compression, False, block_size)
fn = partial(_cp, srcpath, destpath, compression, False, block_size, part_bytes)

with tqdm(desc="Transferring", total=total, disable=(not progress)) as pbar:
with pathos.pools.ProcessPool(parallel) as executor:
Expand Down

0 comments on commit 8ffe5b1

Please sign in to comment.