webdav-client icon indicating copy to clipboard operation
webdav-client copied to clipboard

Please support more depth settings (not just infinite and 1)

Open lithdoo opened this issue 2 years ago • 2 comments

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.

lithdoo avatar Aug 09 '23 17:08 lithdoo

There's no hard reason here. I'd accept a PR to make it possible to specify, but it should:

  • Take priority over the deep option
  • Deprecate the deep option
  • Default to 1
  • Be typed correctly to be any number or infinity

perry-mitchell avatar Sep 09 '23 18:09 perry-mitchell

The RFC only defines 0, 1 and infinity: https://datatracker.ietf.org/doc/html/rfc4918#section-9.1

susnux avatar Feb 04 '24 14:02 susnux