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
openfolderdialog(options: dialogOptions?): folder?Parameters
optionsdialogOptions?Optional: the window title and the folder it opens in.
Returns
folder?
Note
Example
local folder = openfolderdialog({ title = "Pick the scripts folder" })
if folder then
for _, item in folder:List() do
print(item:GetName(), item:IsFolder())
end
end