> ## 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

> 使用 recursive folder creation 在 workspace 内创建 directory，包括 missing parent directories。

<div className="real-function-page">
  ```lua theme={null}
  makefolder(path: string)
  ```

  ## 参数

  <ParamField path={"path"} type={"string"} required>
    经过 separator normalization 和 workspace-boundary checks 后在 workspace 内解析的 directory path。empty、invalid 或 outside-workspace paths 会在尝试创建前 error。
  </ParamField>

  ## 示例

  创建 workspace directory 和 missing parent directories。

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

  makefolder(path)
  print(isfolder(path))
  ```
</div>
