cfclient.file.directoryExists

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")>
<cfif existresponse >
<!---Directory Exists --->
</cfif>


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

 Adobe

Get help faster and easier

New user?