I am fetch objects from Google Cloud Storage using python, in the folder there are many files (around 20000). But I just need a particular file which is .json file all other files are in csv format. For now I am using following code with prefix option: from google.cloud import storage import json storage_client = storage.Client() bucket = storage_client.get_bucket(bucket_name) blobs = list(bucket.list_blobs(prefix="input")) for blob in blobs: if '.json' in blob.name: filename = blob.name break This process is not stable as file count is going to be increased and will take much time to filter the json file.(file name is dynamic and could be anything) Is there any option that can be used like regex filter while fetching the data from cloud storage? Continue reading...