
xdmp:filesystem-directory-create( $pathname as xs:string, [$options as element()?|map:map?] ) as empty-sequence()
Creates the directory specified by pathname. Returns the empty sequence upon success.
http://marklogic.com/xdmp/privileges/xdmp-filesystem-directory-create
xdmp:filesystem-directory-create("/mydata/datafiles/newdir")
=> ()
xdmp:filesystem-directory-create("/mydata/datafiles/newdir",
<options xmlns="xdmp:filesystem-directory-create">
<create-parents>true</create-parents>
</options>)
xdmp:filesystem-directory-create("/mydata/datafiles/newdir",
map:new(map:entry("createParents", fn:false())))
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.