-
Notifications
You must be signed in to change notification settings - Fork 167
Closed
Labels
api: storageIssues related to the googleapis/python-storage API.Issues related to the googleapis/python-storage API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
Environment details
- OS type and version: MacOS BigSur Version 11.4
- Python version: Python 3.9.7
- pip version: pip 21.2.4
google-cloud-storageversion:pip show google-cloud-storage
Name: google-cloud-storage Version: 1.43.0 Summary: Google Cloud Storage API client library Home-page: https://github.com/googleapis/python-storage Author: Google LLC Author-email: [email protected] License: Apache 2.0 Location: /Users/asuleiman/opt/miniconda3/envs/torqata/lib/python3.9/site-packages Requires: six, google-auth, google-resumable-media, google-api-core, requests, google-cloud-core, protobuf Required-by:
Steps to reproduce
- Run with delimiter set:
from google.cloud import storage
storage_client = storage.Client()
r = storage_client.list_blobs(bucket_or_name=bucketname,prefix="match/", delimiter='/')
c = 0
for blob in r:
print(blob.name)
c+=1
if c > 5:
break
Result:
empty
- Run without delimiter set:
from google.cloud import storage
storage_client = storage.Client()
r = storage_client.list_blobs(bucket_or_name=bucketname,prefix="match/",)
c = 0
for blob in r:
print(blob.name)
c+=1
if c > 5:
break
Result:
match/asd1/111/2020-04-26.json
match/asd1/111/2020-04-27.json
match/asd1/111/2020-04-28.json
match/asd1/111/2020-04-29.json
match/asd1/111/2020-04-30.json
match/asd1/111/2020-05-01.json
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the googleapis/python-storage API.Issues related to the googleapis/python-storage API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.