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

   Extra subtlety about the string comparison is that one list in multiple 
different ways too.
   
   For example, `operator.list("/foo/")` and `operator.list("foo/")` are 
effectivelty equivalent.
   If I currently need to exclude the directory being listed, do I:
   * Always exclude the leading `/` slash?
   * Always include it?
   * Does it depend on how I made the call to `operator.list(..)`?
   
   These kind of details can make correctly handling the case quite tricky, and 
if I don't filter it correctly my next call to `entry.name()` could end up 
triggering incorrect logic.


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