- Documentation
Torch Object Storage
SDK Reference
Python
Introduction to typical scenes
Move and rename scenarios (Python SDK)
Introduction to typical scenes
Move and rename scenarios (Python SDK)
Move and rename scenarios (Python SDK)
If you need to rename files in a Bucket, you can copy the source object to the target object using the CopyObject API and then delete the source object using the DeleteObject API.
Rename a single object
The following code renames the object src-object to dest-object in the bucket bucket-test.
Rename a directory
The following code renames the directory exampledir1/ to exampledir2/ in the bucket bucket-test.
Related documentation
Last updated: 2025.09.17 18:22:10