Dir::make()
Creates a new directory
Dir::make(string $dir, bool $recursive = true): bool
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $dir * | string |
– | The path for the new directory |
| $recursive | bool |
true |
Create all parent directories, which don't exist |
Return type
bool
Exceptions
| Type | Description |
|---|---|
Exception |
If a file with the provided path already exists or the parent directory is not writable |