xgbtxy opened a new issue, #9076:
URL: https://github.com/apache/opendal/issues/9076
### Bug Description
When `GlobLayer` handles a recursive glob pattern together with
`start_after` on flat/object-store services (such as `services::Memory`),
matching implicit directories are silently omitted from the results.
### Steps to Reproduce
Using `Operator::new(services::Memory::default())`:
1. Write `t/a/1.txt`, `t/a/x/1.txt`, `t/a/y/1.txt`, `t/b/2.txt`, and
`t/c/3.txt` (without creating explicit directory markers).
2. Call `op.list_with("t/").glob("**/").start_after("t/a/x/1.txt").await` or
`op.list_with("t/").glob("**").start_after("t/a/").await` or
`op.list_with("/").glob("t/*/").start_after("t/a/").await`.
### Actual Behavior
`GlobLayer` routes `start_after` requests to `FilteredLister` with `implied:
None`. Because recursive listings on flat services return only object keys,
directory-matching globs like `**/` and `t/*/` return an empty list `[]`, and
`**` drops `t/a/x/`, `t/a/y/`, `t/b/`, and `t/c/` even though the same queries
without `start_after` return them.
### Expected Behavior
Resuming a non-versioned recursive glob listing with `start_after` emits
every matching implied parent directory strictly after the cursor, once,
matching both the unpaginated listing and services with explicit directories.
*Note: This bug report was investigated and drafted with AI assistance
(Antigravity, Gemini 3.1 Pro, High reasoning effort) and verified locally
against `services::Memory`.*
--
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]