Skip to content

MakeDir (create a directory)

ts
function MakeDir(what: string): boolean;

This function attempts to create the what directory in the local file-system, and returns true if the creation is successful, or false if the function fails.

This function accepts the following parameters:

ParameterTypeRequirementExplanation
whatstringrequiredmust be a valid and non-existing path to the directory you wish to create

Possible return values:

ValueExplanation
truethe function succeeded: the directory was created
falsethe function failed: the directory was not created