Skip to content

format

typescript
Directory.Create(path)

class: Directory

description

Create a directory at the specified path.

parameter

param_nametypedescription
pathstringThe specified path.

return

typedescription
boolean

code example

typescript
function TestDirectory(file_path: string) {
    try {
        Directory.Create(file_path);
            if (!Directory.Exists(file_path)) {
                Debug.Error("Directory '", file_path, "' has been created, but does not exist.");
            }
    } catch (error) {
        Debug.Error(error);
    }
}