Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 49ab278

Browse filesBrowse files
authored
fix(storage): Update comment, prefix should include delimiter (GoogleCloudPlatform#5064)
1 parent 05ef83f commit 49ab278
Copy full SHA for 49ab278

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎storage/cloud-client/storage_list_files_with_prefix.py

Copy file name to clipboardExpand all lines: storage/cloud-client/storage_list_files_with_prefix.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ def list_blobs_with_prefix(bucket_name, prefix, delimiter=None):
3232
a/1.txt
3333
a/b/2.txt
3434
35-
If you just specify prefix = 'a', you'll get back:
35+
If you specify prefix ='a/', without a delimiter, you'll get back:
3636
3737
a/1.txt
3838
a/b/2.txt
3939
40-
However, if you specify prefix='a' and delimiter='/', you'll get back:
40+
However, if you specify prefix='a/' and delimiter='/', you'll get back:
4141
4242
a/1.txt
4343

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.