Filesystem

makefolder

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

Syntax

makefolder(path: string)

Arguments

NameTypeDescription
pathstringDirectory path resolved inside the workspace after separator normalization and workspace-boundary checks. Empty, invalid, or outside-workspace paths error before creation is attempted.

Description

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

Call it with 1 parameter(s): path. The argument table explains which values are required and which ones only refine the behavior.

It does not return data. Treat the call as an action and handle errors around the call site when needed.

Example

Create a workspace directory and any missing parent directories.

local path = "examples/generated/nested"

makefolder(path)
print(isfolder(path))