swift client psudeo-folder syntax is applied inconsistently

Bug #1532988 reported by clayg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
New
Undecided
Unassigned

Bug Description

We allow pseudo-folder syntax for uploads:

vagrant@saio:~$ swift upload test/folder deleteme
deleteme

^ results in an object named "folder/deleteme" created in the container test.

We do not allow pseudo-folder syntax for delete or stat, but do provide a helpful explanation:

vagrant@saio:~$ swift delete test/folder deleteme
WARNING: / in container name; you might have meant 'test folder' instead of 'test/folder'.

vagrant@saio:~$ swift stat test/folder deleteme
WARNING: / in container name; you might have meant 'test folder' instead of 'test/folder'.

One place where the pseudo-folder syntax would be extremely useful is in listings, but here no useful explanation is provided:

vagrant@saio:~$ swift list test
folder/deleteme
vagrant@saio:~$ swift list test/folder
Usage: swift list [--long] [--lh] [--totals] [--prefix <prefix>]
                  [--delimiter <delimiter>] [container]

Lists the containers for the account or the objects for a container.

Positional arguments:
  [container] Name of container to list object in.

Optional arguments:
  -l, --long Long listing format, similar to ls -l.
  --lh Report sizes in human readable format similar to
                        ls -lh.
  -t, --totals Used with -l or --lh, only report totals.
  -p <prefix>, --prefix <prefix>
                        Only list items beginning with the prefix.
  -d <delim>, --delimiter <delim>
                        Roll up items with the given delimiter. For containers
                        only. See OpenStack Swift API documentation for what
                        this means.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.