Skip to content

Allow user to use glob/wildcard in file path #2393

@timvw

Description

@timvw

Currently it is only possible to use a fully qualified path to a file or a folder, eg:

  • /Users/timvw/src/github/arrow-datafusion/testing/data/wildcard/green_01.csv
  • /Users/timvw/src/github/arrow-datafusion/testing/data/wildcard

In situations when a folder contains multiple "sorts" of files it would be handy to use a glob/wildcard to list relevant files, eg:

  • /Users/timvw/src/github/arrow-datafusion/testing/data/wildcard/green_*.csv
    (This would allow one to exclude files such as red_01.csv in that same folder)

Currently this does not seem to work due to some "incorrect/flawed" logic in local.rs / list_all / tokio::fs::metadata(&prefix).await?;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions