Creating a Folder
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 |
|
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+ |
|
obsutil |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot