Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions google/cloud/storage/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1271,14 +1271,14 @@ def list_blobs(
Iterator of all :class:`~google.cloud.storage.blob.Blob`
in this bucket matching the arguments.

Example:
List blobs in the bucket with user_project.
As part of the response, you'll also get back an iterator.prefixes entity that lists object names
up to and including the requested delimiter. Duplicate entries are omitted from this list.

>>> from google.cloud import storage
>>> client = storage.Client()
.. note::
List prefixes (directories) in a bucket using a prefix and delimiter.
See a [sample](https://cloud.google.com/storage/docs/samples/storage-list-files-with-prefix#storage_list_files_with_prefix-python)
listing objects using a prefix filter.

>>> bucket = storage.Bucket(client, "my-bucket-name", user_project="my-project")
>>> all_blobs = list(client.list_blobs(bucket))
"""
bucket = self._bucket_arg_to_bucket(bucket_or_name)

Expand Down