Kinrany opened a new issue, #545:
URL: https://github.com/apache/arrow-rs-object-store/issues/545

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   
   `Path` is central to `object_store`, but manipulating values of this type 
can be hard because its API is mostly structured around one-way parsing.
   
   **Describe the solution you'd like**
   Expand `Path`s API. In no particular order:
   
   - `fn empty()` constructor, equivalent to `Path::from("/")`
   - `fn is_empty(&self) -> bool`, true if `self.raw` is empty
   - `fn len(&self) -> usize`, equivalent to `.parts().count()`
   - `fn prefix(&self) -> Self`, dual to the existing `Parts::filename`
     - Bikeshedding: `fn folder`?
   - Change `parts` to return a custom iterator that is fused and double-ended.
   
   **Describe alternatives you've considered**
   One could argue that `Path` is not designed to be used as a standalone type. 
But then I would expect it to be internal to `object_store`, with all APIs 
using `String` instead.
   
   **Additional context**
   TODO: PR link
   


-- 
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]

Reply via email to