jcledera / sardine

Automatically exported from code.google.com/p/sardine
0 stars 0 forks source link

Sardine should provide API to select Depth of propfind #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Propfind, in sardine, is fixed to a depth of 1. However, if you have a 
collection X  containing hundreds of files, you don't want to fille your memory 
with hundreds of DAVResource and wait two minute to download a 50M response 
when all you needed was to get the custom properties of X, or get it's content 
length. On the opposite, you might want to get a full collection hierarchy 
deeper than 1.

Attached is a patch + unit test to choose depth when calling list(). New method 
is list(url,depth), old methode list(url) still default to 1.

Original issue reported on code.google.com by tch...@gmail.com on 18 Nov 2011 at 11:18

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch. In r310.

Original comment by dkocher@sudo.ch on 18 Nov 2011 at 8:48