Creating a Folder
Application Scenario
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. In OBS, an object is simulated as a folder by adding a slash (/) to the end of the object name on OBS Console. 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 This Function
You can use OBS Console, APIs, SDKs, OBS Browser+, or obsutil to create a folder.
| Tool | Reference |
|---|---|
| OBS Console | |
| 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. |
| APIs | - 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+ | - |
| obsutil |
Last Article: Object Overview
Next Article: Uploading an Object
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.