<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.filesystemFileExists.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.filesystemFileExists</api:function-name><api:suggest>xdmp.filesystemfileexists</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>filesystemfileexists</api:suggest><api:function-link mode="xquery" fullname="xdmp:filesystem-file-exists">/apidoc/8.0/xdmp:filesystem-file-exists.xml</api:function-link><api:function mode="javascript" name="filesystemFileExists" type="builtin" lib="xdmp" category="AdminBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.filesystemFileExists"><api:summary>
  Return true if a file exists on a host; otherwise false.
</api:summary><api:params><api:param name="pathname" type="xs:string"><api:param-description>
    Pathname of the file on a certain host.
  </api:param-description><api:param-name>pathname</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="host" type="xs:unsignedLong?" optional="true"><api:param-description>
    ID of the host.  If omitted, uses the current host ID (for example, the
    output of a call to <code xmlns="http://www.w3.org/1999/xhtml">xdmp:host</code>).
  </api:param-description><api:param-name>host</api:param-name><api:param-type>String?</api:param-type></api:param></api:params><api:return>Boolean</api:return><api:privilege>
  <p xmlns="http://www.w3.org/1999/xhtml"><code>http://marklogic.com/xdmp/privileges/xdmp-filesystem-file-exists</code></p>
</api:privilege><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.filesystemFileExists("/testdata1/a.jpg");
=&gt; true
</pre></api:example></api:function></api:function-page>