I have a list of file paths that I want to check in GCS. It looks like this:
for path in all_paths:
try:
gcs.blob(GCS_BUCKET_NAME, path).exists()
except google.api_core.exceptions.NotFound:
missing_paths.append(path)
This works fine but it takes a lot of time as requests are sent one by one, for each path. Is there a way to send batches of requests in google cloud storage API ? Or any way to speed up this check ?