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 the object is in several subfolders, all folders make up the prefix. The prefix is included in the object name when working with the storage via console utilities and APIs. When renaming a folder, each object in it is actually renamed.
For example, a folder is created in the container Folder1
in which there is a folder Folder2
. Subject Object.txt
is in the folder Folder2
. The full name of the object is. Folder1/Folder2/Object.txt
it should be specified when accessing via API and console clients. In the object name Folder1/Folder2/
— prefix.
All objects in the folder inherit the properties of the container.
You can copy, move and delete a folder.
Create a folder
- in control panels from the top menu, press Products and select Object Storage.
- Go to the section Containers.
- Open the container page → tab Objects.
- Click Create a folder
- Enter the name of the folder.
- Click Create.
Move the folder
- in control panels from the top menu, press Products and select Object Storage.
- Go to the section Containers.
- Open the container page → tab Objects.
- On the menu folders, select Relocate.
- Open the folder to which you want to move the folder.
- Click Paste to current folder.
Copy folder
- in control panels from the top menu, press Products and select Object Storage.
- Go to the section Containers.
- Open the container page → tab Objects.
- On the menu folders, select Copy.
- Open the folder to which you want to copy the folder.
- Click Paste to current folder.
Delete folder
If the container is enabled versioning When deleting a folder (deleting objects with a certain prefix), the objects will have versions created, for more details see subsection Delete an object when versioning is enabled or paused of the Delete Object instruction. When you delete a folder, objects are deleted without specifying a version.
- В control panels from the top menu, press Products and select Object Storage.
- Go to the section Containers.
- Open the container page → tab Objects.
- On the menu. folders, select Delete folder.
- Enter a name for the folder and click Delete.