(client, local_path, bucket, s3_path)
| 28 | |
| 29 | |
| 30 | def upload_file(client, local_path, bucket, s3_path): |
| 31 | try: |
| 32 | client.upload_file(local_path, bucket, s3_path) |
| 33 | print(f"Successfully uploaded {s3_path}") |
| 34 | except Exception as e: |
| 35 | print(f"Error uploading {s3_path}: {e}") |
| 36 | |
| 37 | |
| 38 | def upload_directory_to_s3(local_directory, destination, bucket): |
nothing calls this directly
no outgoing calls
no test coverage detected