Skip to main content
Manage folders (prefixes)

Manage folders (prefixes)

Object storage has a flat structure in which technically the folder entity does not exist, but simulated folders can be created and viewed in the control panel and GUI utilities for ease of working with the storage.

The folder name is a prefix in the object name.If an object is in multiple subfolders, all folders make up the prefix.The prefix is included in the object name when working with the repository through console utilities and APIs.When a folder is renamed, every object in it is actually renamed.

For your information

For example, a Folder1 folder is created in a container, and there is a Folder2 folder in  the container. Object.txt object is located in Folder2 folder . The full name of the object is Folder1/Folder2/Object.txt, it should be specified when accessing it via API and console clients. The object name Folder1/Folder2/ is a prefix.

All objects in the folder inherit the properties of the container.

You can copy, move and delete a folder.

Create a folder

  1. In the Control Panel, on the top menu, click Products and select Object Storage.
  2. Go to the Containers section.
  3. Open the container page → Objects tab.
  4. Click Create Folder
  5. Enter the name of the folder.
  6. Click Create.

Move the folder

  1. In the Control Panel, on the top menu, click Products and select Object Storage.
  2. Go to the Containers section.
  3. Open the container page → Objects tab.
  4. From the menu of the folder, select Move.
  5. Open the folder to which you want to move the folder.
  6. Click Paste to current folder.

Copy folder

  1. In the Control Panel, on the top menu, click Products and select Object Storage.
  2. Go to the Containers section.
  3. Open the container page → Objects tab.
  4. From the menu of the folder, select Copy.
  5. Open the folder to which you want to copy the folder.
  6. Click Paste to current folder.

Delete folder

If versioning is enabled in the container, when deleting a folder (deleting objects with a specific prefix), the objects will have versions created, see the Delete Object When Versioning is Enabled or Suspended subsection of the Delete Object instruction for details .When deleting a folder, objects are deleted without specifying a version.

  1. In the Control Panel, on the top menu, click Products and select Object Storage.
  2. Go to the Containers section.
  3. Open the container page → Objects tab.
  4. From the folder's menu, select Delete Folder.
  5. Enter a name for the folder and click Delete.