CreateDir
This function creates a new directory.
Syntax
- bool CreateDir(string path, bool recursive=false)
Parameters
- path: this is the path to the new directory.
- recursive: if set to true, this will create any missing folders in the specified path.
Remarks
This function will have no effect if Lua sandboxing is enabled.
Example
--Create a file
local path = "MyDir"
FileSystem:CreateDir(path)