Skip to content

Commit 278b812

Browse files
author
Adnan Alhomssi
committed
fix missing path prefix in bulk_delete_impl
1 parent 6580c33 commit 278b812

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "object_store_ffi"
3-
version = "0.12.0"
3+
version = "0.12.1"
44
edition = "2021"
55

66
[[bench]]

src/crud_ops.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ impl Client {
229229
}
230230

231231
async fn bulk_delete_impl(&self, paths: &Vec<Path>) -> crate::Result<Vec<(Path, crate::Error)>> {
232+
// Add the client prefix to the provided paths if needed
233+
let paths = paths.into_iter().map(|path| self.full_path(path)).collect::<Vec<Path>>();
232234
let stream = stream::iter(paths.iter().map(|path| Ok(path.clone()))).boxed();
233235
let results = self.store.delete_stream(stream)
234236
.collect::<Vec<_>>().await;

0 commit comments

Comments
 (0)