MarkLogic Server 11.0 Product Documentation
xdmp:directory-locks

xdmp:directory-locks(
   $uri as xs:string*,
   [$depth as xs:string?]
) as document-node()*

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

Usage Notes

Note that the locks described here are relatively heavy persistent document locks for file system emulation through WebDAV, not relatively light transaction locks for database consistency.

Example

  for $d in xdmp:directory-locks("http://example.com/foo/","1")
  return xdmp:node-uri($d)
  => http://example.com/foo/bar.xml
     http://example.com/foo/baz.xml
Powered by MarkLogic Server | Terms of Use | Privacy Policy