DirectoryExists is available since version 1.0.
Prototype:
boolean DirectoryExists(string dir_path)
Parameters
dir_path
[in] A string containing the path of the directory.
Description:
Checks if a directory exists. If path is a file, then this function will return false. For files, check
FileExists.
Return value:
Returns true if the directory exists, false otherwise.