Xuanwo opened a new pull request, #8588:
URL: https://github.com/apache/opendal/pull/8588
# Which issue does this PR close?
Closes #6676.
Supersedes #8509 by @Mola-maker, whose work is credited in the commit. Refs
#6676 and #8205.
# Rationale for this change
On `main` at `15cc86a1`, listing the root of a local FS store with
`start_after("d/x")` returned entries before the marker. The generic recursive
walker opened each directory without the marker, so a flat-list filter alone
could not fix recursive listing. This PR addresses both findings in [the review
of
#8509](https://github.com/apache/opendal/pull/8509#pullrequestreview-6004390799).
# What changes are included in this PR?
FS handles recursive listing and advertises both recursive and `start_after`
support. With a marker, it sorts entries one directory at a time and walks a
directory containing the marker to find later descendants. Ordinary listings
continue streaming. The FS operator regression test exercises both modes,
including directory and empty markers, prefix listings, and lexical ordering.
The `object_store` adapter keeps filtering FS offsets in its existing
percent-encoded path order. A regression test checks that `list_with_offset`
excludes the encoded marker itself.
# Are there any user-facing changes?
Flat and recursive FS listings with `start_after` return paths strictly
after the marker in lexicographic order. The FS docs describe the extra work of
reading and sorting each visited directory.
# Breaking changes
# AI Usage Statement
- Harness: `pi`. Model: `codex/gpt-6.2-sol`. Effort: `xhigh`. Role:
Reproduced the issue on a local filesystem, implemented and validated the
superseding change, and drafted this PR.
- Harness: Muse. Model: Muse Spark. Effort: default. Role: Assisted
@Mola-maker with the original investigation, fix, and tests, as disclosed in
#8509.
--
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]