Skip to content

Add ObjectStore::list_opts #295

@tustvold

Description

@tustvold

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

We should add an ObjectStore::list_opts to allow

Describe the solution you'd like

I think the following API should work and eventually allow providing default implementations of list and list_with_delimiter that call through to list_opts

struct ListOptions {
    pub offset: Option<Path>,
    pub delimiter: bool,
    pub extensions: Extensions
}

fn list_opts(&self, opts: ListOptions) -> BoxStream<'static, Result<ListResult>>

Describe alternatives you've considered

We could expose an API that more explicitly exposes the paginated nature of the underlying APIs, however, such APIs are quite cumbersome to use, and wouldn't obviously translate to LocalFileSystem.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions