Created
September 7, 2012 11:50
-
-
Save tedder/3665524 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto | |
s3 = boto.connect_s3("key", "secret") | |
for bucket in s3.get_all_buckets(): | |
if not bucket.name.islower(): | |
print "-- skipping bucket, cannot handle uppercase bucket names: " + bucket.name | |
continue | |
for file in bucket: | |
print "\t\t" + str(file.size) + "\t" + file.name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment