perry-mitchell / webdav-client

WebDAV client written in Typescript for NodeJS and the browser
MIT License
661 stars 143 forks source link

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

Open lithdoo opened 1 year ago

lithdoo commented 1 year ago

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.

perry-mitchell commented 1 year ago

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

susnux commented 8 months ago

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