Skip to content

S3FileSystem.exists returns False instead of error if credentials are wrong. #750

@kasuteru

Description

@kasuteru

Short version: When calling exists("/path/to/file") on an s3fs.S3FileSystem with wrong credentials, instead of throwing an error that the credentials are wrong, it instead responds with False. This is misleading, since the file might actually exist but the credentials are simply wrong.

Tested with version 2023.6.0, but existed in previous versions at least dating back to 2022 as well.

Was this a conscious decision or is this a bug? In case of the former, I heavily disagree with it...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions