Name

FileExists

Synopsis

                  
                  FileExists(path)

Returns Yes if the specified file exists or No if it doesn’t. The absolute path to the file being evaluated must be provided. Example:

<cfif FileExists('c:\boot.ini')>
  File exists!
<cfelse>
  File doesn't exist!
</cfif>

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.