From 41ec819a3512d16a3659e24c401f0b9d5a33d250 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 7 Nov 2021 19:28:32 -0800 Subject: [PATCH] Remove spinal.copy, just let the caller do it. --- voussoirkit/spinal.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/voussoirkit/spinal.py b/voussoirkit/spinal.py index a805af9..fd86da6 100644 --- a/voussoirkit/spinal.py +++ b/voussoirkit/spinal.py @@ -73,21 +73,6 @@ def callback_progress_v1(path, written_bytes, total_bytes): safeprint.safeprint(status, end=ends) sys.stdout.flush() -def copy(source, file_args=None, file_kwargs=None, dir_args=None, dir_kwargs=None): - ''' - Perform copy_dir or copy_file as appropriate for the source path. - ''' - source = pathclass.Path(source) - if source.is_file: - file_args = file_args or tuple() - file_kwargs = file_kwargs or dict() - return copy_file(source, *file_args, **file_kwargs) - elif source.is_dir: - dir_args = dir_args or tuple() - dir_kwargs = dir_kwargs or dict() - return copy_dir(source, *dir_args, **dir_kwargs) - raise SpinalError(f'Neither file nor dir: {source}') - def copy_dir( source, destination=None,