diff --git a/pyo3-object_store/src/prefix.rs b/pyo3-object_store/src/prefix.rs index 78f3fc1a..6cf4861c 100644 --- a/pyo3-object_store/src/prefix.rs +++ b/pyo3-object_store/src/prefix.rs @@ -148,7 +148,9 @@ impl ObjectStore for MaybePrefixedStore { async fn get_opts(&self, location: &Path, options: GetOptions) -> Result { let full_path = self.full_path(location); - self.inner.get_opts(&full_path, options).await + let mut result = self.inner.get_opts(&full_path, options).await?; + result.meta = self.strip_meta(result.meta); + Ok(result) } async fn get_ranges(&self, location: &Path, ranges: &[Range]) -> Result> {