makeDirectory(dir_path, [recursive])
Class: SwingUI.
Description:
Creates a directory synchronously.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
string |
Path to the directory to create |
|
|
|
boolean |
false |
Create parent directories if they don't exist |
Returns:
- Returns
trueon success or throws error on failure
Type: boolean
Throws:
- Error: When the directory path is invalid.
- Error: When the directory already exists.
- Error: When failed to create the directory.
