cfclient.file.exists

Checking if the file exists

You can determine if the specified file exists by using the exists function as shown in the following example:

<cfset existresponse = cfclient.file.exists(“myNewFile.txt”)>

Method summary

exists(filePath) - check if file exists at specified location

  • returns - true/false
  • params - filePath  Absolute or relative path of the file to be checked (including file name).

Get help faster and easier

New user?