The directory_exists (x) returns True if directory x exists, False otherwise.
If x contains ? or * wildcards the directory_exists (x) function returns True if there is at least one directory which matches the wildcard pattern.
This function returns a value of type Boolean.
directory_exists("c:\somedirectory")
Result: True if c:\somedirectory exists