Describe the bug
Calling .head() on a prefix store returns an ObjectMeta with a .location that contains the prefix. Other methods such as .list() strip the prefix: https://docs.rs/object_store/latest/src/object_store/prefix.rs.html#146
To Reproduce
let store = PrefixStore::new("client-jail", InMemory::new());
let path = Path::from("my-file");
match store.head(&path).await {
Ok(meta) => {
store.get(meta.location).await.expect("to not try open client-jail/client-jail/my-file");
...
Expected behavior
From prefix.rs, I think PrefixStore's head() method needs to call strip_meta.
Current Workaround
Reusing the path passed into head().
Thank you ❤️
Describe the bug
Calling
.head()on a prefix store returns an ObjectMeta with a.locationthat contains the prefix. Other methods such as.list()strip the prefix: https://docs.rs/object_store/latest/src/object_store/prefix.rs.html#146To Reproduce
Expected behavior
From prefix.rs, I think PrefixStore's
head()method needs to call strip_meta.Current Workaround
Reusing the path passed into
head().Thank you ❤️