MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / upload_file

Function upload_file

trainer/src/shared.py:30–35  ·  view source on GitHub ↗
(client, local_path, bucket, s3_path)

Source from the content-addressed store, hash-verified

28
29
30def 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
38def upload_directory_to_s3(local_directory, destination, bucket):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected