Skip to content
Saiko

openfolderdialog

Opens a dialog for the user to pick a folder, and returns it. Only the calling thread waits until the dialog is dismissed.

Signature

luau
openfolderdialog(options: dialogOptions?): folder?

Parameters

optionsdialogOptions?

Optional: the window title and the folder it opens in.

Returns

folder?

Note

Example

luau
local folder = openfolderdialog({ title = "Pick the scripts folder" })

if folder then
    for _, item in folder:List() do
        print(item:GetName(), item:IsFolder())
    end
end