Created
February 4, 2022 03:50
-
-
Save jsj14/76ecbd6ea3e462dda507fdd22678a48d 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
from google.cloud import storage | |
storage_client = storage.Client(project='your-project-id') | |
def list_blobs(bucket_name): | |
"""Lists all the blobs in the bucket""" | |
blobs = storage_client.list_blobs(bucket_name) | |
for blob in blobs: | |
print(blob.name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment