tustvold commented on code in PR #3663:
URL: https://github.com/apache/arrow-rs/pull/3663#discussion_r1096726666
##########
object_store/src/path/mod.rs:
##########
@@ -162,6 +162,13 @@ impl Path {
})
}
+ /// Parse a url encoded string as a [`Path`], returning a [`Error`] if
invalid,
+ /// as defined on the docstring for [`Path`]
+ pub fn from_url_path(path: impl AsRef<str>) -> Result<Self, Error> {
+ let decoded_path =
percent_encoding::percent_decode_str(path.as_ref()).decode_utf8_lossy();
+ Self::parse(decoded_path.as_ref())
Review Comment:
Actually reading this again, should this be `Self::parse` or `Self::from`??
--
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]