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:\cfusion\bin\cfcrypt.exe')>
  File exists!
<CFELSE>
  File doesn't exist!
</CFIF>

Get Programming ColdFusion 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.