Xuanwo commented on issue #6805:
URL: https://github.com/apache/opendal/issues/6805#issuecomment-3553950111

   > Is it at least consistent across services?
   
   Yes, all services follow the same behavior: return `abc/` itself if it 
exists.
   
   > Out of curiosity, what is the rationale here for this behaviour?
   
   To make the list behavior consistent across all those patterns:
   
   - s3 vs fs
     - `abc/` might not exist on s3, and there’s no way to tell if `abc/` exists
     - `abc` and `abc/` can both exist at the same time on s3
   - file vs dir: returning the file but not the dir seems inconsistent
   
   > Is there a Lister option to not do this?
   
   Not for now, but maybe we can have a layer for that (which just ignore the 
dir itself for you)


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