copy_key¶
- copy_key(location: str, old_key: str, new_key: str) None [source]¶
Copy object key at specified location.
Method will copy the object in an S3 bucket if the location begins with the s3:// protocol, otherwise it assumes the location is a local path.
- Parameters:
location – Object location (local path or S3 bucket).
old_key – Old object key.
new_key – New object key.