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
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 PROPFIND request for the D:contentlength property. Depending on the WebDAV server you're accessing, that should return the sizes of all the files within that folder (with Depth: 1) or the entire subtree (with Depth: 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.