The Content UI presents a dynamic folder hierarchy for browsing and uploading content within a bucket. This hierarchy is based on the prefixes stored on the object names (such as folder/subfolder/object.xml). This folder simulation is similar to the listing behavior of other visual clients used with Swarm, such as SwarmFS and S3 Browser. (v7.0)

These folders offer three key benefits:

Navigating Virtual Folders

The Content UI automatically parses object names into a folder hierarchy when opening a bucket to view the contents.

Folder View

This is the automatic view of the bucket contents; one folder level at a time is visible. Although S3 includes the folder within the listing, the Content UI does not, so as to match the behavior of file systems. 

Flat View

The ability exists to see the flattened view of bucket contents, without virtual folders.

Adding Virtual Folders

The Content UI displays virtual folders in two ways - one temporary and one permanent. 

Temporary

Create temporary folders when content is uploaded with a File Name Prefix.

Important

With prefixes, naming is important: do not begin with a slash, but always end with a slash: myfolder/

Permanent

To create a persistent folder even when empty, open a bucket and select +Add > Add Folder.

Deleting Virtual Folders

The Content UI allows deleting permanent virtual folders in two ways - one recursively and one non-recursively:

Recursive Delete

The Actions menu provides the option to delete the folder while in the folder view. This delete is a recursive removal of all content, both objects and subfolders.

Non-Recursive Delete 

The ability to delete a persisted folder without deleting or renaming any content for a collection is present in the flattened view.

Tip

The folder is temporary and appears dynamically because of prefixes on object names if the folder is not visible on a separate line in this view - there is nothing persisted in the cluster to be deleted.