boto / boto

For the latest version of boto, see https://github.com/boto/boto3 -- Python interface to Amazon Web Services

Home Page:http://docs.pythonboto.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to create pseudo folder?

nagexiucai opened this issue · comments

how to create pseudo folder in openstack-swift with boto.s3.connection.S3Connection?
i used this suggestion:

k = bucket.new_key('abc/123/')
k.set_contents_from_string('')

but, it will be a zero-size file object, just looks like not a pseudo folder on horizon.

i had seen this, but it is boto3.

now i use metadata to distinguish pseudo folder and file object.