My main problem is, I want to check if an object in gcp exists or not. So, what I tried
from google.cloud import storage
client = storage.Client()
path_exists = False
for blob in client.list_blobs('models', prefix='trainedModels/mddeep256_sarim'):
path_exists = True
break
It worked fine for me. But now the problem is I don't know the model name which is mddeep256 but I know further part _sarim
So, I want to use something like
for blob in client.list_blobs('models', prefix='trainedModels/*_sarim'):
I want to use * wildcard, how can I do that?