CreateDirectory Procedure

Creates a directory, and any parent directories in the path as needed.
Declaration
sub CreateDirectory(path as String)

Parameters

Possible error codes

Example

Code
' create a new subdirectory in the current directory
CreateDirectory "testdir"
' create a file in that directory
dim filePath = PathCombine(["testdir", "test.txt"])
WriteFileText filePath, "hello world!"
' delete the directory and the file inside it
DeleteDirectory "testdir", true