ReferenceFilesystem

isfolder

Tests whether a workspace path names a directory. Use it before creating an optional output folder; it does not grant access outside the workspace.

Syntax

isfolder(path: string) -> boolean

Also available as

is_folder

Parameters

ParameterTypeDescription
pathstringWorkspace-relative path.

Returns

TypeDescription
booleanTrue for an existing directory.

Description

File operations are confined to the current workspace. Absolute paths and traversal outside it are not accepted. Use a file dialog when the user needs to choose an external file.

Example

if not isfolder("exports") then makefolder("exports") end

These are Game executor contracts. Check build requirements and session lifetimes before using them.