I’m using JackRabbit Webdav Client for Android.I’m unable to get the size of the specific folder.Is there any way to find this?For a file getContentLength property is returning length.This property is not available for folder.
Thanks in Advance,
Sha
You should be able to collect this information with a
PROPFINDrequest for theD:contentlengthproperty. Depending on the WebDAV server you’re accessing, that should return the sizes of all the files within that folder (withDepth: 1) or the entire subtree (withDepth: infinity).You’d still have to iterate through the returned values to calculate the sum of all individual file sizes, but at least you’ll only need a single HTTP request for this.