| Contents > CFML Reference > ColdFusion Functions > DirectoryExists |
|
|
|
|
||
Determines whether a directory exists.
Yes, if the specified directory exists; No, otherwise.
DirectoryExists(absolute_path)
Parameter |
Description |
|---|---|
absolute_path |
An absolute path |
<h3>DirectoryExists Example</h3>
<h3>Enter a directory to check for existence.</h2>
<form action = "directoryexists.cfm" method="post">
<input type = "text" name = "yourDirectory">
<br>
<input type = "submit" name = "submit">
</form>
<cfif IsDefined("FORM.yourDirectory")>
<cfif FORM.yourDirectory is not "">
<cfset yourDirectory = FORM.yourDirectory>
<cfif DirectoryExists(yourDirectory)>
<cfoutput>
<p>Your directory exists. Directory name: #yourDirectory#
</cfoutput>
<cfelse>
<p>Your directory does not exist.</p>
</cfif>
</cfif>
</cfif>
|
|
||
| Contents > CFML Reference > ColdFusion Functions > DirectoryExists |
|
|
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi72.htm