-
Notifications
You must be signed in to change notification settings - Fork 329
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
merge list_objects_v2() into list_objects() method #953
merge list_objects_v2() into list_objects() method #953
Conversation
6afee6c
to
a955a53
Compare
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, although this looks like a breaking change, maybe we need to increase major version number now
Yes, unfortunately, we will have to do that @vadmeste |
tests/unit/list_objects_test.py
Outdated
@@ -1,6 +1,6 @@ | |||
# -*- coding: utf-8 -*- | |||
# MinIO Python Library for Amazon S3 Compatible Cloud Storage, | |||
# (C) 2015, 2016 MinIO, Inc. | |||
# (C) 2015 MinIO, Inc. |
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.
# (C) 2015 MinIO, Inc. | |
# (C) 2015-2020 MinIO, Inc. |
5be8a19
to
c7e4734
Compare
c7e4734
to
c43362b
Compare
Depends on #966 |
c43362b
to
3a9b22d
Compare
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.
One comment, LGTM otherwise
@@ -32,8 +32,8 @@ | |||
|
|||
# List all object paths in bucket that begin with my-prefixname using | |||
# V2 listing API. | |||
objects = client.list_objects_v2('my-bucketname', prefix='my-prefixname', | |||
recursive=True) | |||
objects = client.list_objects('my-bucketname', prefix='my-prefixname', |
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.
This example has duplicated code after your change, I guess you need to use api v1 in the first line and update some wording
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.
done
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 & tested
No description provided.