Skip to content
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#

Luau
openfolderdialog(title: string?): string?

Parameters#

ParameterTypeDescription
titleoptionalstringDialog title; default Select Folder.

Returns#

Selected full path, or nil if cancelled or no filesystem path is available.

Examples#

Local example

Luau
local folder = openfolderdialog("Choose a folder")
if folder then print(folder) end