On this page

Creating a Folder

Updated on 2024-05-31 GMT+08:00

Scenarios

You can create a folder in a bucket to facilitate classification and management of data stored in OBS.

Unlike a file system, OBS does not involve the concepts of file and folder. For easy data management, OBS provides a method to simulate folders. On OBS Console or OBS Browser+, an object is simulated as a folder by adding a slash (/) to the end of the object name. When objects are listed by calling the API, the obtained object name is the path of the object, and the content following the last slash (/) is the actual object name. If the path ends with a slash (/), it indicates that the object is a folder. The hierarchical depth of the object does not affect the performance of accessing the object.

How to Use

You can use OBS Console, APIs, SDKs, OBS Browser+, or obsutil to create a folder.

Tool

Reference

OBS Console

Creating a Folder

SDKs

OBS supports software development kits (SDKs) in multiple languages. For details, see the corresponding developer guide on the SDK Overview page.

NOTE:

To create a folder in OBS is to create an object whose size is 0 and whose name ends with a slash (/), in essential.

API

-

NOTE:

To create a folder in OBS is to create an object whose size is 0 and whose name ends with a slash (/), in essential.

OBS Browser+

Creating a Folder

obsutil

Creating a Folder

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback