alamb commented on code in PR #543:
URL:
https://github.com/apache/arrow-rs-object-store/pull/543#discussion_r2539697812
##########
src/lib.rs:
##########
@@ -1274,6 +1267,11 @@ where
let options = GetOptions::new().with_range(Some(range));
self.get_opts(location, options).await?.bytes().await
}
+
+ async fn head(&self, location: &Path) -> Result<ObjectMeta> {
+ let options = GetOptions::new().with_head(true);
Review Comment:
TIL that GetOpts already has `with_head` 🤯
The more I see of these PRs to extract code into ObjectStoreExt the better I
like it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]