directory_exists(dname)
Jump to navigation
Jump to search
Description
Gets whether the given directory exists and returns the result.
Parameters
Parameter | Data Type | Description |
---|---|---|
dname | string | the directory path and name |
Return Values
integer: Returns whether the directory exists or not.
Example Call
// demonstrates checking if a directory called "archivedata" exists in the working directory
if (directory_exists(working_directory + "archivedata")) {
// directory does exist
} else {
// directory does not exist
}