MACROMEDIA COLFUSION MX 7-CFML Reference page 575

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

DirectoryExists
Description
Determines whether a directory exists.
Returns
Yes, if the specified directory exists; No, otherwise.
Category
System functions
Function syntax
DirectoryExists(absolute_path)
See also
FileExists
Parameters
Parameter
absolute_path
Example
<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>
Description
An absolute path
DirectoryExists
575

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents