File dialogsReference
openfolderdialog
Ask the user to select a filesystem folder.
Details#
Ask the user to select a filesystem folder. Selected full path, or nil if cancelled or no filesystem path is available.
Signature#
openfolderdialog(title: string?): string?Parameters#
| Parameter | Type | Description |
|---|---|---|
titleoptional | string | Dialog title; default Select Folder. |
Returns#
Selected full path, or nil if cancelled or no filesystem path is available.
Examples#
Local example
local folder = openfolderdialog("Choose a folder")
if folder then print(folder) end