MarkLogic Server 11.0 Product Documentation
xdmp.directoryProperties

xdmp.directoryProperties(
   uri as String[],
   [depth as String?]
) as Sequence

Summary

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".

Example

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.
Powered by MarkLogic Server | Terms of Use | Privacy Policy