apache / opendal

Apache OpenDAL: access data freely.
https://opendal.apache.org
Apache License 2.0
2.99k stars 416 forks source link

idea: Move root out of backend to operator instead #4774

Open Xuanwo opened 2 weeks ago

Xuanwo commented 2 weeks ago

Every services need to handle root, which most of the time is duplicated. Maybe we can move root of backend and handling at operato level?

Benefits:

Most services should work smoothly, but we need to handle Windows paths carefully, as they will require a format like C:\\path\\to\\data.

yuchanns commented 2 weeks ago

IMO it is better to build an absolute path at the operator level and pass it to the service backends. It delivers a clear path which may reduce path-related bugs when implementing a backend.

Xuanwo commented 2 weeks ago

IMO it is better to build an absolute path at the operator level and pass it to the service backends. It delivers a clear path which may reduce path-related bugs when implementing a backend.

That's exactly what this idea want to address