userzhy opened a new pull request, #7096: URL: https://github.com/apache/opendal/pull/7096
# Which issue does this PR close? Closes #7095. # Rationale for this change When using a recursive lister, if a `PermissionDenied` error occurs while iterating (e.g., accessing a protected directory), the lister immediately returns `None` on the next `.next()` call, terminating the entire iteration prematurely. This is unexpected behavior - users should be able to continue iterating through other accessible files/directories even when some directories are protected. # What changes are included in this PR? Modified `FlatLister::next()` in `core/core/src/raw/oio/list/flat_list.rs` to catch `PermissionDenied` errors when calling `list()` on a directory and skip the inaccessible directory instead of propagating the error. # Are there any user-facing changes? No breaking changes. The behavior change is a bug fix - recursive listing will now continue after encountering permission-denied directories instead of stopping prematurely. # AI Usage Statement This PR was created with the assistance of GitHub Copilot (Claude Opus 4.5). -- 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]
