item:MakeFolder
Creates one child folder beneath the selected folder. Pass a single folder name, not an absolute path or a path containing separators. Existing names and denied writes can raise errors.
Syntax
item:MakeFolder(name: string) -> DialogItem
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | Name of the new child folder. |
Returns
| Type | Description |
|---|---|
DialogItem | Item representing the newly created folder. |
Description
Call this method on an item returned by a file dialog. Items belong to the current session and should not be serialized for reuse after reconnecting.
Example
local item = openfolderdialog()
if item then
local child = item:MakeFolder("example")
print(child:GetName())
end
These are Game executor contracts. Check build requirements and session lifetimes before using them.
