From ea284c919907c79c24e59a1f534590d608941f8c Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 8 May 2021 18:23:28 -0700 Subject: [PATCH] Add hash_class passthrough argument. --- voussoirkit/spinal.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/voussoirkit/spinal.py b/voussoirkit/spinal.py index 3480d15..ea1c36e 100644 --- a/voussoirkit/spinal.py +++ b/voussoirkit/spinal.py @@ -97,6 +97,7 @@ def copy_dir( exclude_directories=None, exclude_filenames=None, files_per_second=None, + hash_class=None, overwrite_old=True, precalcsize=False, skip_symlinks=True, @@ -169,6 +170,9 @@ def copy_dir( Maximum number of files to be processed per second. Helps to keep CPU usage low. + hash_class: + Passed into each `copy_file` as `hash_class`. + overwrite_old: Passed into each `copy_file` as `overwrite_old`. @@ -295,6 +299,7 @@ def copy_dir( callback_pre_copy=callback_pre_file, chunk_size=chunk_size, dry_run=dry_run, + hash_class=hash_class, overwrite_old=overwrite_old, validate_hash=validate_hash, )