问题描述
我正在尝试使用python和openstack lib检索容器内容的列表。
与:成功连接后
conn = connection.Connection(
...)
并成功响应了:
for cont in conn.object_store.containers():
print(cont.name)
我想检索其中一个容器的对象列表。我找到了这个,但是不起作用:
for data in conn.get_container('container_name')[1]:
print ('{0}\t{1}\t{2}'.format(data['name'],data['bytes'],data['last_modified']))
有更好的建议方法吗? 谢谢 梅里克。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)