Skip to content

Rust API: Store::list_dir does not differentiate between keys/prefixes #276

@LDeakin

Description

@LDeakin

For example, I would expect the following to output "c/" and "zarr.json".

icechunk/icechunk/src/zarr.rs

Lines 2073 to 2075 in d2cced7

let mut dir = store.list_dir("array/").await?.try_collect::<Vec<_>>().await?;
dir.sort();
assert_eq!(dir, vec!["c".to_string(), "zarr.json".to_string()]);

Also, consider outputting a struct holding keys/prefixes in separate Vecs instead.

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