
xdmp.directoryProperties( uri as String[], [depth as String?] ) as Sequence
Returns a sequence of properties documents, one for each document in the specified directory that has a corresponding properties document.
| Parameters | |
|---|---|
| uri | The URI of the directory. Typically, directory URIs end with a forward slash (/). |
| depth | "1" for immediate children, "infinity" for all children. If not supplied, depth is "1". |
xdmp.directoryProperties("http://example.com/dir/","1");
=> <prop:properties
xmlns:prop="http://marklogic.com/xdmp/property">
<prop:directory/>
</prop:properties>
The properties document returned has one directory element, indicating
that there is a single directory that is an immediate child of the
specified directory.