<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.filesystemDirectoryCreate.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.filesystemDirectoryCreate</api:function-name><api:suggest>xdmp.filesystemdirectorycreate</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>filesystemdirectorycreate</api:suggest><api:function-link mode="xquery" fullname="xdmp:filesystem-directory-create">/apidoc/8.0/xdmp:filesystem-directory-create.xml</api:function-link><api:function mode="javascript" name="filesystemDirectoryCreate" type="builtin" lib="xdmp" category="AdminBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.filesystemDirectoryCreate"><api:summary>
  Creates the directory specified by pathname.
  Returns the empty sequence upon success.
</api:summary><api:params><api:param name="pathname" type="xs:string"><api:param-description>
    Pathname of the directory to be created.
  </api:param-description><api:param-name>pathname</api:param-name><api:param-type>String</api:param-type></api:param><api:param class="javascript" name="options" type="Object?" optional="true"><api:param-description>
  If <code xmlns="http://www.w3.org/1999/xhtml">createParents</code> is <code xmlns="http://www.w3.org/1999/xhtml">true</code>, then if necessary 
  it will create the parent directories all the way down to the 
  final directory in the path. If <code xmlns="http://www.w3.org/1999/xhtml">false</code> it will merely complain 
  that the parents do not exist. The default for <code xmlns="http://www.w3.org/1999/xhtml">createParents</code> 
  is <code xmlns="http://www.w3.org/1999/xhtml">false</code>.
  </api:param-description><api:param-name>options</api:param-name><api:param-type>Object?</api:param-type></api:param></api:params><api:return>null</api:return><api:privilege>
  <p xmlns="http://www.w3.org/1999/xhtml"><code>http://marklogic.com/xdmp/privileges/xdmp-filesystem-directory-create</code></p>
</api:privilege><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.filesystemDirectoryCreate("/tmp/a/b/c",
                               { createParents: true }
                              )
</pre></api:example></api:function></api:function-page>