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?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online