ReferenceFilesystem

item:List

Lists children of the selected folder as new dialog items. By default only immediate children are returned. Recursive traversal is bounded and can stop before listing a very large tree.

Syntax

item:List(recursive: boolean?) -> {DialogItem}

Parameters

ParameterTypeDescription
recursiveboolean?Include descendants; defaults to false.

Returns

TypeDescription
{DialogItem}Accessible child items.

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
    for _, child in item:List() do
        print(child:GetName())
    end
end

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