예제 #1
0
파일: s3.py 프로젝트: mathmodave/s3python
def listAllBuckets():
    size = 0
    bucketList = s3commands.doListAllBuckets()
    for bucket in bucketList:
        print bucket.name
        keyList = s3commands.doGetBucket(bucket.name)
        for key in keyList:
            print "",
            key.dump()
            size += key.size
    print "\nTotal Usage: %s" % human(size)
예제 #2
0
파일: s3.py 프로젝트: mathmodave/s3python
def listBucket(theBucket):
    keyList = s3commands.doGetBucket(theBucket)
    for key in keyList:
        print "",
        key.dump()