<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.uriIsFile.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.uriIsFile</api:function-name><api:suggest>xdmp.uriisfile</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>uriisfile</api:suggest><api:function-link mode="xquery" fullname="xdmp:uri-is-file">/apidoc/8.0/xdmp:uri-is-file.xml</api:function-link><api:function mode="javascript" name="uriIsFile" type="builtin" lib="xdmp" category="AppServerBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.uriIsFile"><api:summary>
  Returns true if a given URI refers to a
  file which exists on the current application server.  
  Only returns true if the modules on the App Server is set to 
  file system; always returns false if you are using a database for your
  modules.
  false 
  Returns false if the file does not exist.
  Returns the empty sequence if the URI is the empty sequence.
</api:summary><api:params><api:param name="uri" type="xs:string?"><api:param-description>
    The URI to check.
    If the URI begins with a "/", it is relative to the root directory
    of the application server. 
    Otherwise, it is relative to the current request URI.
  </api:param-description><api:param-name>uri</api:param-name><api:param-type>String?</api:param-type></api:param></api:params><api:return>Boolean?</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.uriIsFile("/sub-directory/test.xml");
=&gt; true if test.xml exists in "sub-directory" relative
   to the root directory of the application server.
</pre></api:example></api:function></api:function-page>