chitralverma opened a new issue, #3127:
URL: https://github.com/apache/incubator-opendal/issues/3127

   Thinking about the recent changes in the listing API(s), I was wondering if 
returning just metadata of the provided path_str can be improved a bit for 
`stat` as well.
   
   Considering the list* API(s) returns either a stream or a list of `Entry`, 
the `stat` API for consistency purposes should look like a singular version of 
the same by taking in a path_str and returning an `Entry`.
   
   This of course doesn't functionally change anything and is a very 
opinionated user-facing change.
   
   ```
   pub fn list(&self, path: &str) -> Result<Vec<Entry>>
   
   pub fn stat(&self, path: &str) -> Result<Entry> { ... }
   ```


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