Xuanwo commented on issue #3500: URL: https://github.com/apache/incubator-opendal/issues/3500#issuecomment-1797987090
This feature request is related to https://github.com/apache/incubator-opendal/issues/1251. Maybe it's possible for us to add `glob` and `regex` support for list, so users can use opendal in this way: ```rust let entries = op.list_with("prefix/").glob("ab*").await?; ``` - For services that have native support for glob patterns, we can forward the glob pattern directly. - For services nto support glob patterns, we can perform the filter at `Lister` level. This is a zero-cost abstraction because: - Users don't use `glob` won't be affected. - Users use `glob` upon supported services can use native API. - Users use `glob` upon un-supported services can use the best implemention. -- 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]
