Skip to content

Difference between TrinoFileSystem.listFiles contract and implementation #28665

@findepi

Description

@findepi

Trino version

479

Please describe the bug

TrinoFileSystem.listFiles(location) is documented as follows

Lists all files within the specified directory recursively. The location can be empty,
listing all files in the file system, otherwise the location must end with a slash.

At least the S3 implementation accepts locations not ending with a slash though:

Either we should change implementation, or the contract.

cc @electrum

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions