Last updated on 
                
                    Apr 27, 2021
                
            
            
                 | 
                
                    Also applies to ColdFusion
                
            
        
        
            
        
    
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).