propfind_sync


Description:

public bool propfind_sync (string? uri, string depth, XmlDocument? xml, WebDAVPropstatTraverseFunc? func, Cancellable? cancellable = null) throws Error

Issues PROPFIND request on the provided uri, or, in case it's null, on the URI defined in associated Source.

On success, calls func for each returned DAV:propstat.

The xml can be null, in which case the server should behave like DAV:allprop request.

Parameters:

this

an WebDAVSession

uri

URI to issue the request for, or null to read from Source

depth

requested depth, can be one of WEBDAV_DEPTH_THIS, WEBDAV_DEPTH_THIS_AND_CHILDREN or WEBDAV_DEPTH_INFINITY

xml

the request itself, as an XmlDocument, the root element should be DAV:propfind, or null

func

an WebDAVPropstatTraverseFunc function to call for each DAV:propstat in the multistatus response

cancellable

optional Cancellable object, or null

func_user_data

user data passed to func

Returns:

Whether succeeded.