I need to get the number of files in a bucket of GCS.
I don't want to use list_blobs
to read them one by one and increase a counter.
Is there something like a metadata we can query?
I need to download all the files in the bucket and process them. now I want to do it using threads so I would need to separate files to groups somehow.
The idea was to use list_blobs
with offset
and size
, but in order to do that I need to know the number of total files.
Any idea?
Thanks