Skip to content

S3Path.exists() returns True on partial matches #208

@maciejb

Description

@maciejb

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 for foo.

>>> S3Path('s3://my-bucket/foobar').exists()  # This file is really there
True
>>> S3Path('s3://my-bucket/foo').exists()  # This file does NOT exist
True

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions