Skip to content

Commit

Permalink
feat(storage): add match_glob param to list_blobs() (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Costa authored Sep 13, 2023
1 parent 258b254 commit cc137ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/gcloud/aio/storage/bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ async def blob_exists(
raise e

async def list_blobs(
self, prefix: str = '',
self, prefix: str = '', match_glob: str = '',
session: Optional[Session] = None,
) -> List[str]:
params = {'prefix': prefix, 'pageToken': ''}
params = {'prefix': prefix, 'matchGlob': match_glob, 'pageToken': ''}
items = []
while True:
content = await self.storage.list_objects(
Expand Down

0 comments on commit cc137ea

Please sign in to comment.