amunra commented on issue #6805: URL: https://github.com/apache/opendal/issues/6805#issuecomment-3557113261
Yes, either that or if the directory you're scanning isn't there, return an `ErrorKind::NotFound`. This latter approach would also work, and would be consistent with `operator.read`. At the moment it's "stringly-typed programming" and the API breaks the principle of least surprise and it's why I initially genuinely believed this to be a bug. There's two distinct cases during the iteration process: * Handling the presence or absence of the directory that you're listing. * Handling the children of the directory you're listing. One needs a string comparison to distinguish these. Not ideal. -- 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]
