DirectoryExists

Checks if the given directory exists.

DirectoryExists(dir) : true | false
FolderExists(dir) : true | false

Example

Checks if the folder myfolder exists in the scripts directory.

local exists = DirectoryExists('scripts/myfolder')