Filesystem

makefolder

Creates a folder inside the executor workspace.

Syntax

makefolder(path: string)

Arguments

NameTypeDescription
pathstringWorkspace-relative path to the file or folder.

Description

Creates a folder inside the executor workspace.

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 = "workspace/examples/generated"

if not isfolder(path) then
    makefolder(path)
end