-
Notifications
You must be signed in to change notification settings - Fork 44
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
path.iterdir()
yields path
itself as the first item (with S3)
#226
Comments
Hi @danielgafni Thank you for reporting! Could you check 3 things:
Cheers, |
Hey! I can answer to (1) and (3) right away:
Regarding (2), I will be able to check a bit later |
Checked it, seems to be an issue with |
I wouldn't call it a problem. There's something stored under that key in the bucket. We should just define / document behavior of upath in cases like these. |
No object with this key exists in the bucket. Also, it happens with any "directory" (common path prefix) in the bucket, not just a specific one. Also, |
Could you create a PR with a test case in the upath S3 tests that reproduces the issue? That would be super helpful for finding a solution |
Given the following objects on S3:
UPath("s3://my-bucket/my-directory").iterdir() yields:
The first item is wrong, right?
The text was updated successfully, but these errors were encountered: