Replies: 1 comment 7 replies
-
Is this what you are trying to do? >>> wr.s3.copy_objects(['s3://hansonlu-test-data-bucket/source/extra-prefix/file1.json'], 's3://hansonlu-test-data-bucket/source/extra-prefix/', 's3://hansonlu-test-data-bucket/target/')
['s3://hansonlu-test-data-bucket/target/file1.json'] |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am copying objects from one prefix to another using awswrangler and it works perfectly fine, but I need to get rid of the source prefix when I copy to target and keep just the Key name from source prefix.
wr.s3.copy_objects(full_paths_list, source_path, target_path)
Any idea on how can I achieve this, I looked at the documentation (https://aws-sdk-pandas.readthedocs.io/en/stable/stubs/awswrangler.s3.copy_objects.html)
Couldnt find anything tangible.
Beta Was this translation helpful? Give feedback.
All reactions