You can rename objects in a bucket. If the hierarchical namespace feature is enabled for a bucket when the bucket is created, you can also rename directories in the bucket.
- The CopyObject operation is called to rename objects.
- You can rename only objects that are up to 1 GB in size in the OSS console. To rename objects that are larger than 1 GB, we recommend that you use ossutil.
- In a bucket for which versioning is enabled, you can rename an object only when you set Display Previous Versions to Hide. After you rename an object, a delete marker is created for the original object.
- If the object that you rename is an IA, Archive, or Cold Archive object and is stored for less than the specified minimum storage duration, you are charged for the entire minimum storage duration. For more information, see Storage fees.
- The Rename operation is called to rename objects or directories.
- The size of the object you want to rename is not limited in the OSS console.
For more information about the hierarchical namespace feature, see Hierarchical namespace.
- Log on to the OSS console.
- In the left-side navigation pane, click Buckets. On the Buckets page, click the name of the bucket in which the object or directory you want to rename is stored.
- In the left-side navigation pane, click Files.
- Move the pointer over the object or directory you want to rename and click the icon to the right of the object or directory name.
- In the Rename dialog box, enter the new object or directory name and click OK. The object or directory name must conform to the following conventions:
- The name can contain only UTF-8 characters.
- The name must be 1 to 254 characters in length.
- The name cannot include forward slashes (/) or backslashes (\).