Last updated on
Apr 27, 2021
|
Also applies to ColdFusion
Checking if the directory exists
You can check if the directory exists by using the directoryExists function as shown in the following example:
<cfset existresponse=cfclient.file.directoryExists("myNewDir")> |
Method summary
directoryExists (path)
- Params
- path An absolute or relative path of the directory (including directory name).
Returns – a Boolean value indicating the existence of the specified directory