swift client psudeo-folder syntax is applied inconsistently
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>]
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
-t, --totals Used with -l or --lh, only report totals.
-p <prefix>, --prefix <prefix>
-d <delim>, --delimiter <delim>