DirectoryExists
Last updated
Was this helpful?
Last updated
Was this helpful?
Determines whether a directory exists
path
string
true
The directory path
allowRealPath
boolean
true
Whether to allow an absolute path as the path argument
true
Checking if a directory called 'icons' exists and then creating the directory if it does not exist.
Result: The directory 'icons' will be created under the img folder.
Result: false