> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# makefolder

> Creates a directory inside the workspace with recursive folder creation, including missing parent directories.

Creates a directory inside the workspace with recursive folder creation, including missing parent directories.

## Syntax

```lua theme={null}
makefolder(path: string)
```

## Arguments

| Name   | Type     | Required | Description                                                                                                                                                                              |
| ------ | -------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `path` | `string` | Yes      | Directory path resolved inside the workspace after separator normalization and workspace-boundary checks. Empty, invalid, or outside-workspace paths error before creation is attempted. |

## Example

Create a workspace directory and any missing parent directories.

```lua theme={null}
local path = "examples/generated/nested"

makefolder(path)
print(isfolder(path))
```
