libera_utils.io.smart_open.smart_copy_file#

libera_utils.io.smart_open.smart_copy_file(source_path: str, dest_path: str, delete=False)#

Copy function that can handle local files or files in an S3 bucket. Returns the path to the newly created file as a Path or an S3Path, depending on the destination.

Parameters:
Returns:

The path to the newly created file

Return type:

pathlib.Path or cloudpathlib.s3.s3path.S3Path