Question

I am trying to get a list of folders in an array from a remote webdav. I am using the PROPFIND method querying for property 'isfolder', which although it is not standard it is contemplated in 'Additional WebDAV Collection Properties'. Then, I will parse the XML response to build up the array. However, in the response, I get a 'Resource not found' for this property. I am using the query against an IIS server.

My question, which seems to be answered already with my results (need confirmation though), is: -Doesn't IIS have 'isfolder' property by default?

Then, how can I include it?

And, is there a better way to get a list of folders from a webdav directory?

Many thanks in advance.

Was it helpful?

Solution

You don't need any custom properties. Just check the DAV:resourcetype property.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top