Function: url-dav-get-properties

url-dav-get-properties is a byte-compiled function defined in url-dav.el.gz.

Signature

(url-dav-get-properties URL &optional ATTRIBUTES DEPTH NAMESPACES)

Documentation

Return properties for URL, up to DEPTH levels deep.

Returns an assoc list, where the key is the filename (possibly a full URI), and the value is a standard property list of DAV property names (ie: DAV:resourcetype).

Source Code

;; Defined in /usr/src/emacs/lisp/url/url-dav.el.gz
(defun url-dav-get-properties (url &optional attributes depth namespaces)
  "Return properties for URL, up to DEPTH levels deep.

Returns an assoc list, where the key is the filename (possibly a full
URI), and the value is a standard property list of DAV property
names (ie: DAV:resourcetype)."
  (url-dav-request url "PROPFIND" 'DAV:propfind
		   (if attributes
		       (mapconcat (lambda (attr)
				    (concat "<DAV:prop><"
					    (symbol-name attr)
					    "/></DAV:prop>"))
				  attributes "\n  ")
		     "  <DAV:allprop/>")
		   depth nil namespaces))