-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only force loading if delimiter is specified
When delimiter is passed into list_blobs, prefixes is not populated, loading is forced with next(blobs, None). Do not attempt to iterate again over blobs if blobs.prefixes is empty and delimiter has been passed in. This prevents the "iterator has already started" error message.
- Loading branch information
1 parent
67453a6
commit 0728cfa
Showing
2 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters