Loading TOC...

xdmp.directoryLocks

xdmp.directoryLocks(
   $uri as String[],
   [$depth as String?]
) as ValueIterator

Summary

Returns locks of documents in a directory.

Parameters
$uri The URI of the directory. Typically, directory URIs end with a forward slash (/).
$depth "1" for immediate children, "infinity" for all. If not supplied, depth is "1".

Example

for (var d in xdmp.directoryLocks("http://example.com/foo/","1")) {
  if (d.value) {
    xdmp.nodeUri(d);
  };
}
  => http://example.com/foo/bar.xml
     http://example.com/foo/baz.xml

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy