Open ffgalindo opened 6 years ago
Possible method on how to obtain storages used per blob.
def list_blobs(bucket_name):
"""Lists all the blobs in the bucket."""
storage_client = storage.Client()
bucket = storage_client.get_bucket(bucket_name)
blobs = bucket.list_blobs()
for blob in blobs:
print(blob.name)
The blob object should have size attribute somewhere
Add support for Google Cloud Storage