Skip to content

Instantly share code, notes, and snippets.

@notmyname
Created December 6, 2010 16:26
Show Gist options
  • Save notmyname/730521 to your computer and use it in GitHub Desktop.
Save notmyname/730521 to your computer and use it in GitHub Desktop.
import cloudfiles
import cf_auth
conn = cloudfiles.get_connection(username=cf_auth.username,
api_key=cf_auth.apikey)
container = conn.create_container('foo')
obj = container.create_object('bar')
obj.write('bar')
obj = container.create_object('subdir/')
obj.write()
obj = container.create_object('subdir/baz')
obj.write('baz')
print container.list_objects()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment