Closed dominictarro closed 8 months ago
S3Bucket.copy_object resolves the target path using the source bucket, regardless of whether the object goes to the source bucket or elsewhere.
S3Bucket.copy_object
https://github.com/PrefectHQ/prefect-aws/blob/87755b2d7fd979d7975486abdd56f2e4d191e2f7/prefect_aws/s3.py#L1238
self
to_bucket
S3Bucket
S3Bucket.copy_object
resolves the target path using the source bucket, regardless of whether the object goes to the source bucket or elsewhere.https://github.com/PrefectHQ/prefect-aws/blob/87755b2d7fd979d7975486abdd56f2e4d191e2f7/prefect_aws/s3.py#L1238
Expectation / Proposal
self
when the object is being copied within the bucketto_bucket
when the object is being copied to it and it is anS3Bucket
Traceback / Example