-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add offset and includeTrailingPrefix options to list_blobs #125
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @andrewsg, added two nits
blobs = list(page) | ||
self.assertEqual([blob.name for blob in blobs], ["file01.txt", "parent/"]) | ||
self.assertIsNone(iterator.next_page_token) | ||
self.assertEqual(iterator.prefixes, set(["parent/"])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how is this request different when include_trailinig_delimitier=False
? I don't see the difference between the system test in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The difference is that this is the only name that includes parent/
in self.assertEqual([blob.name for blob in blobs], ["file01.txt", "parent/"])
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll leave this for you to resolve if you're satisfied with that explanation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
…gleapis#125) * feat: add offset and includeTrailingPrefix options to list_blobs * lint * fix comment typo in system tests Co-authored-by: Frank Natividad <frankyn@users.noreply.github.com>
…gleapis#125) * feat: add offset and includeTrailingPrefix options to list_blobs * lint * fix comment typo in system tests Co-authored-by: Frank Natividad <frankyn@users.noreply.github.com>
No description provided.