Commit 7101f47 1 parent 4c92a9a commit 7101f47 Copy full SHA for 7101f47
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1271,14 +1271,14 @@ def list_blobs(
1271
1271
Iterator of all :class:`~google.cloud.storage.blob.Blob`
1272
1272
in this bucket matching the arguments.
1273
1273
1274
- Example:
1275
- List blobs in the bucket with user_project .
1274
+ As part of the response, you'll also get back an iterator.prefixes entity that lists object names
1275
+ up to and including the requested delimiter. Duplicate entries are omitted from this list .
1276
1276
1277
- >>> from google.cloud import storage
1278
- >>> client = storage.Client()
1277
+ .. note::
1278
+ List prefixes (directories) in a bucket using a prefix and delimiter.
1279
+ See a [sample](https://cloud.google.com/storage/docs/samples/storage-list-files-with-prefix#storage_list_files_with_prefix-python)
1280
+ listing objects using a prefix filter.
1279
1281
1280
- >>> bucket = storage.Bucket(client, "my-bucket-name", user_project="my-project")
1281
- >>> all_blobs = list(client.list_blobs(bucket))
1282
1282
"""
1283
1283
bucket = self ._bucket_arg_to_bucket (bucket_or_name )
1284
1284
You can’t perform that action at this time.
0 commit comments