You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
Blob prefixes not available until you iterate the files #863
Hi eavonius, thank you for the question. You are right about the iterator has to be called first in order to access the list of prefixes. This is intended, as list_blobs operation returns an iterator, and the rpc is done with a response back only when you iterate through the iterator
Activity
cojenco commentedon Sep 13, 2022
Hi eavonius, thank you for the question. You are right about the iterator has to be called first in order to access the list of prefixes. This is intended, as
list_blobsoperation returns an iterator, and the rpc is done with a response back only when you iterate through the iteratorAnother way that works too:
I agree this could stand to be clarified in the documentation. I'll update the official documentation and sample notes.
jaymeedwards commentedon Sep 14, 2022
@cojenco thanks, makes sense to me. Yep a little note in the documentation would go a long way. Was very confusing at first. Thanks for the help!