Skip to content
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

S3BucketBaseReader strange iter behavior #73

Open
thorwhalen opened this issue Sep 10, 2020 · 0 comments
Open

S3BucketBaseReader strange iter behavior #73

thorwhalen opened this issue Sep 10, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@thorwhalen
Copy link
Member

from py2store import myconfigs
from py2store.persisters.new_s3 import S3BucketBaseReader

ro_client_kwargs = myconfigs['my_configs_for_this.ini']['s3_all_ro']
s = S3BucketBaseReader(ro_client_kwargs, 'otodata')
>>> list(s)
['/', 'cf-templates/', 'indices/', 'lib/', 'odir/', 'something_else/']

What's that '?' key doing there. What's in it?

>>> list(s['/'])
['/indices/', '/odir/']

Curiouser and curiouser! We get indices and odir... but not the other ones?!?!

@thorwhalen thorwhalen added the bug Something isn't working label Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant