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
let containers = self.client.as_blob_service_client().list_containers().execute().await;
containers
.unwrap().incomplete_vector.iter().find(|item| item.name == bucket_name).is_some()
might fail if containers > 5000 as incomplete_vector will not be the full list of containers
letmut _token = None;letmut _found = false;loop{let containers = self.client.as_blob_service_client().list_containers()// there should be a method in the list builder that we can pass token back to.next_token(_token).execute().await;let container_vec = containers.unwrap().incomplete_vector;
_found = container_vec.iter().any(|item| item.name == bucket_name);if _found || container_vec.is_complete(){break;}else{// obtain the token for the next batch of 5000
_token = container_vec.token().expect("").clone().to_owned();}};
_found
The text was updated successfully, but these errors were encountered:
might fail if containers > 5000 as
incomplete_vector
will not be the full list of containersThe text was updated successfully, but these errors were encountered: