[openstack-dev] [swift][horizon] Simulating hierarchical directory structure

Dean Troyer dtroyer at gmail.com
Mon Jan 21 18:56:19 UTC 2013


The current Swift API docs (trunk) refer to a directory marker object
in http://docs.openstack.org/trunk/openstack-object-storage/developer/content/pseudo-hierarchical-folders-directories.html
for supporting a new 'path' query parameter that better supports the
psuedo-hierarchical directory simulation.  The published v1 api doc
(http://docs.openstack.org/api/openstack-object-storage/1.0/content/pseudo-hierarchical-folders-directories.html)
does not contain this, only the 'prefix' and 'delimiter' query
parameters that were originally used for the simulated hierarchy.

Horizon has been creating these directory marker objects for some time
now (https://review.openstack.org/8217) and the Swift CLI displays
them with the other objects in the container.  The current Swift CLI
(1.2.0, but reporting 1.0 with --version) is oblivious to the
existence of these directory marker objects, displaying them in 'list'
output as any other objects and having no way to create them directly.

I have a couple of questions regarding the desire to make Swift CLI
and Horizon more consistent in their behaviour:

1) a) Should the directory marker objects in a Swift container be
displayed at all?  b) If yes, should they be displayed denoting their
status as something different from the usual container objects, say
with a trailing '/' as other utilities like tar(1) do?

2) Should Swift CLI automatically create the directory marker objects
when objects with a prefix containing '/' is uploaded?

3) How far should the Swift CLI go in supporting the
psuedo-hierarchical directory simulation?

dt

-- 

Dean Troyer
dtroyer at gmail.com



More information about the OpenStack-dev mailing list