directoryExists

Description

Returns "true" if the directory exists and "false" otherwise.

Parameters

Return Type

Boolean (true/false)

Example

if(directoryExists("C:/myDirectory")){ print("The directory exists!"); } else { print("The directory does not exist!"); }

 

It is recommended that you use forward slashes ( / ) for file paths.

See also

Peacock