-
Notifications
You must be signed in to change notification settings - Fork 0
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
Get most of the tests to pass #3
Get most of the tests to pass #3
Conversation
Co-authored-by: Davis Bennett <[email protected]>
@@ -158,12 +168,13 @@ async def _transform_list_dir( | |||
# We assume that the underlying object-store implementation correctly handles the | |||
# prefix, so we don't double-check that the returned results actually start with the | |||
# given prefix. | |||
prefix_len = len(prefix) | |||
prefix_len = len(prefix) + 1 # If one is not added to the length, all items will contain "/" |
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.
Actually, should we test if a user defines prefix as (e.g.,) "foo/" rather than "foo" before automatically adding 1?
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.
Ideally it shouldn't be necessary to check again in Python
@@ -158,12 +168,13 @@ async def _transform_list_dir( | |||
# We assume that the underlying object-store implementation correctly handles the | |||
# prefix, so we don't double-check that the returned results actually start with the | |||
# given prefix. | |||
prefix_len = len(prefix) | |||
prefix_len = len(prefix) + 1 # If one is not added to the length, all items will contain "/" |
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.
Ideally it shouldn't be necessary to check again in Python
Thank you! |
Fixes previously failing tests