makefolder Synchronous

Create a workspace directory for related files. Kawaii creates missing parents as well, so one call can prepare a nested destination.

Syntax
Luau
makefolder(path: string) -> ()

Parameters

Function parameters
ParameterTypeDescription
pathstringWorkspace-relative directory path.

Returns

()

No values.

Usage notes

Calling it for a directory that already exists keeps that directory.

Differences from Volt

Volt documents access through explicitly created workspace symlinks. Kawaii rejects symlinks in workspace paths; all workspace operations remain subject to its path containment checks.

Example

Example
Luau
makefolder("example-settings/backups")
writefile("example-settings/backups/first.txt", "Backup ready")
Kawaii documentation