You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: b2sdk/api.py
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,8 @@ def __init__(
60
60
max_upload_workers: Optional[int] =None,
61
61
max_copy_workers: Optional[int] =None,
62
62
max_download_workers: Optional[int] =None,
63
+
save_to_buffer_size: Optional[int] =None,
64
+
check_download_hash: bool=True,
63
65
):
64
66
"""
65
67
Initialize Services object using given session.
@@ -68,6 +70,8 @@ def __init__(
68
70
:param max_upload_workers: a number of upload threads
69
71
:param max_copy_workers: a number of copy threads
70
72
:param max_download_workers: maximum number of download threads
73
+
:param save_to_buffer_size: buffer size to use when writing files using DownloadedFile.save_to
74
+
:param check_download_hash: whether to check hash of downloaded files. Can be disabled for files with internal checksums, for example, or to forcefully retrieve objects with corrupted payload or hash value
:param max_download_workers: maximum number of download threads
144
+
:param save_to_buffer_size: buffer size to use when writing files using DownloadedFile.save_to
145
+
:param check_download_hash: whether to check hash of downloaded files. Can be disabled for files with internal checksums, for example, or to forcefully retrieve objects with corrupted payload or hash value
0 commit comments