webdav-client
webdav-client copied to clipboard
Please support more depth settings (not just infinite and 1)
I found that the deep option for getDirectoryContents can only control setting Depth 1 or infinite .
May I ask why can't configure a other level depth.
There's no hard reason here. I'd accept a PR to make it possible to specify, but it should:
- Take priority over the
deepoption - Deprecate the
deepoption - Default to
1 - Be typed correctly to be any number or
infinity
The RFC only defines 0, 1 and infinity: https://datatracker.ietf.org/doc/html/rfc4918#section-9.1