chitralverma opened a new pull request, #9376:
URL: https://github.com/apache/opendal/pull/9376

   # Which issue does this PR close?
   
   Closes #9371.
   
   # Rationale for this change
   
   `OpDelete::check` (`core/core/src/raw/ops.rs`) returns `Unsupported` for 
`recursive` when the service stack does not advertise 
`Capability::delete_with_recursive`. The `DeleteOptions::version` doc names its 
capability, but the `recursive` doc does not.
   
   I reproduced this against a real service through the Node.js binding (built 
from this branch with `services-cacache`). `cacache` is local on-disk storage 
that supports `delete` but not `list`, so `SimulateLayer` cannot simulate 
recursive delete for it:
   
   ```
   cacache delete: true list: false deleteWithRecursive: false
   cacache recursive delete error: Unsupported (permanent) at delete, context: 
{ service: cacache } => The service does not support the operation delete with 
the arguments recursive. ...
   memory delete: true list: true deleteWithRecursive: true
   memory recursive delete: ok, a/b exists: false
   ```
   
   Services that support `list`, `delete`, and recursive listing get 
`delete_with_recursive` from `SimulateLayer`, so they do not hit this error.
   
   # What changes are included in this PR?
   
   - Add "Check [`crate::Capability::delete_with_recursive`] before using this 
option." to `DeleteOptions::recursive`. The sentence matches the one on 
`version`.
   - Regenerate the bindings that render core's `DeleteOptions` docs. Each gets 
only the new `recursive` doc line, in the same form as its existing `version` 
entry:
     - Node.js: `src/options/delete.rs` and `generated.d.ts` ("Check 
`Capability.deleteWithRecursive` before using this option.")
     - Java: `@see Capability#deleteWithRecursive`
     - .NET: `<seealso cref="Capability.DeleteWithRecursive"/>`
   
   No other generator output changed. The C, C++, and Go headers on main still 
carry hand-written delete option docs. Open PRs #9366 (C++) and #9368 (C/Go) 
move those docs to the generator, and their binding notes mention only the 
`version` `Unsupported` case. After this PR lands, they can merge main, 
regenerate, and extend those notes to cover `recursive`. This PR does not touch 
them.
   
   # Are there any user-facing changes?
   
   Documentation only. Runtime behavior does not change.
   
   # Breaking changes
   
   # AI Usage Statement
   
   - Harness: Claude Code via T3 Code
   - Model: Claude Opus 5.5
   - Effort: high
   - Role: Wrote the doc change, ran every `ci_odev` generator and binding 
formatter, reproduced the cacache `Unsupported` result through the Node.js 
binding, and ran the dev, core, Node.js, and Java checks. The .NET output was 
not built locally because no .NET SDK is installed. The `cref` target 
`Capability.DeleteWithRecursive` exists in 
`bindings/dotnet/OpenDAL/Capability.cs`.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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