From 28ef58b487324e4fb2e9d8f5bc230a45cb61aad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Gr=C3=B6bmeyer?= Date: Wed, 27 Jan 2021 18:57:49 +0100 Subject: [PATCH] chunk_size Parameter was not passed to download_dir call and also to recusive download call --- rpyc/utils/classic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpyc/utils/classic.py b/rpyc/utils/classic.py index 113629c0..595446fa 100644 --- a/rpyc/utils/classic.py +++ b/rpyc/utils/classic.py @@ -221,7 +221,7 @@ def download(conn, remotepath, localpath, filter=None, ignore_invalid=False, chu :param chunk_size: the IO chunk size """ if conn.modules.os.path.isdir(remotepath): - download_dir(conn, remotepath, localpath, filter) + download_dir(conn, remotepath, localpath, filter, chunk_size) elif conn.modules.os.path.isfile(remotepath): download_file(conn, remotepath, localpath, chunk_size) else: @@ -246,7 +246,7 @@ def download_dir(conn, remotepath, localpath, filter=None, chunk_size=STREAM_CHU if not filter or filter(fn): rfn = conn.modules.os.path.join(remotepath, fn) lfn = os.path.join(localpath, fn) - download(conn, rfn, lfn, filter=filter, ignore_invalid=True) + download(conn, rfn, lfn, filter=filter, ignore_invalid=True, chunk_size=chunk_size) def upload_package(conn, module, remotepath=None, chunk_size=STREAM_CHUNK):