-
Notifications
You must be signed in to change notification settings - Fork 64
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
S3Path.exists() returns True on partial matches #208
Comments
Looks like this is a bug in cloudpathlib/cloudpathlib/s3/s3client.py Lines 153 to 165 in 2084e20
This branch of logic is too permissive and needs to also check if there's a Also a blind spot in our tests that this isn't caught. |
I think append a |
Whoops, closed this by accident. |
Hi. Looking for some eyes on #244 if anybody has the time. We stumbled upon the same problem and fixed it by patching it but wanted to submit a fix.
It is also checking that condition as well. |
S3Path.exists() is returning True for anything that begins with the same as a real file. For instance, if we have a file named
foobar
, we get a false positive when querying forfoo
.The text was updated successfully, but these errors were encountered: