Arguments
DialogOptions
Optional table. For openfolderdialog, title and defaultPath are used. defaultPath is applied only when it resolves to an existing directory. extensionFilter is accepted by the shared dialog options parser but folder selection is enabled with folder selection mode.
Returns
FileSystemItem | nil
Selected folder item, or nil when the dialog is cancelled. Dialog failures throw Failed to open folder dialog.