dirExists()

Returns true if directory exists.

Syntax:
variable = dirExists( path )

Example:
if dirExists( "../../examples" ) then
    prints("ok")
else
    prints("error")
end if
waitKey