format
typescript
Directory.Create(path)class: Directory
description
Create a directory at the specified path.
parameter
| param_name | type | description |
|---|---|---|
| path | string | The specified path. |
return
| type | description |
|---|---|
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);
}
}