Skip to content

Commit 2f52327

Browse files
authored
Update documentation for prefix, delimiter search (#2537)
* Update documentation for prefix, delimiter search * Remove whitespace.
1 parent 41b70f4 commit 2f52327

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

storage/cloud-client/snippets.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,21 @@ def list_blobs_with_prefix(bucket_name, prefix, delimiter=None):
130130
"files" in the given "folder". Without the delimiter, the entire tree under
131131
the prefix is returned. For example, given these blobs:
132132
133-
/a/1.txt
134-
/a/b/2.txt
133+
a/1.txt
134+
a/b/2.txt
135135
136-
If you just specify prefix = '/a', you'll get back:
136+
If you just specify prefix = 'a', you'll get back:
137137
138-
/a/1.txt
139-
/a/b/2.txt
138+
a/1.txt
139+
a/b/2.txt
140140
141-
However, if you specify prefix='/a' and delimiter='/', you'll get back:
141+
However, if you specify prefix='a' and delimiter='/', you'll get back:
142142
143-
/a/1.txt
143+
a/1.txt
144144
145+
Additionally, the same request will return blobs.prefixes populated with:
146+
147+
a/b/
145148
"""
146149
storage_client = storage.Client()
147150

0 commit comments

Comments
 (0)