Updated on 2026-08-21 GMT+08:00

Creating Folders

Scenarios

You can create folders in a bucket to help organize and manage your data in OBS.

Unlike traditional file systems, OBS does not use the concepts of files and folders. Instead, it provides a way to simulate folders for easier data management. OBS Console or OBS Browser+ simulates a folder by adding a slash (/) to the end of an object name. When objects are listed via the API, the returned object name is the path, and the content after the last slash (/) is considered the actual object name. If the path ends with a slash (/), it indicates a folder. The hierarchical depth of a folder has no impact on object access performance.

Folder Creation Methods

You can create a folder in either of the following methods:

  • Upload an object whose name contains a slash (/) on OBS Console. For example, uploading Dir/test.txt creates the Dir folder, which contains the object test.txt. For details about how to upload objects, see Uploading Objects.
  • Create a folder directly. You can use OBS Console, APIs, SDKs, OBS Browser+, or obsutil to create a folder.

Follow-up Operations

You can click More > Copy Path in the Operation column to copy the path of the folder and share it with others. Then they can open the bucket where the folder is stored and enter the path in the search box above the object list to find the folder.