<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>DIRECTORYEXISTS</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="Description">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">DIRECTORYEXISTS</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Description</span>
<p>
Determines whether a directory exists.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Returns</span>
<p>
Yes, if the specified directory exists; No, otherwise.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Category</span>
<p>
System functions
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Function syntax</span><pre>DirectoryExists(absolute_path)
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">See also</span>
<p>
FileExists
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Parameters</span>
<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Example</span><pre>&lt;h3&gt;DirectoryExists Example&lt;/h3&gt;
&lt;h3&gt;Enter a directory to check for existence.&lt;/h2&gt;
&lt;form action = &quot;directoryexists.cfm&quot; method=&quot;post&quot;&gt;
   &lt;input type = &quot;text&quot; name = &quot;yourDirectory&quot;&gt;
   &lt;br&gt;
   &lt;input type = &quot;submit&quot; name = &quot;submit&quot;&gt;
&lt;/form&gt;

&lt;cfif IsDefined(&quot;FORM.yourDirectory&quot;)&gt;
   &lt;cfif FORM.yourDirectory is not &quot;&quot;&gt;
   &lt;cfset yourDirectory = FORM.yourDirectory&gt;
      &lt;cfif DirectoryExists(yourDirectory)&gt;
         &lt;cfoutput&gt;
         &lt;p&gt;Your directory exists. Directory name: #yourDirectory#
         &lt;/cfoutput&gt;
      &lt;cfelse&gt;
         &lt;p&gt;Your directory does not exist.&lt;/p&gt;
      &lt;/cfif&gt;
   &lt;/cfif&gt;
&lt;/cfif&gt; 
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="ABSOLUTE_PATH">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">ABSOLUTE_PATH</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>


<p>An absolute path</p>

  </td>
  </tr>
  </table>
</div>

  </body>
</html>
